diff options
author | Matjaž Črnko <m.crnko@txt.si> | 2023-06-16 12:29:22 +0200 |
---|---|---|
committer | Matjaž Črnko <m.crnko@txt.si> | 2023-06-16 12:29:22 +0200 |
commit | 16e5e019089ea03df4562551043e37130db314c6 (patch) | |
tree | 45df0c1774f2c9476d9771fd11adff9eb2e188a1 /modern/src/common/components | |
parent | b77d0f87b24d90d5e0d8da43aa11d08690880755 (diff) | |
download | trackermap-web-16e5e019089ea03df4562551043e37130db314c6.tar.gz trackermap-web-16e5e019089ea03df4562551043e37130db314c6.tar.bz2 trackermap-web-16e5e019089ea03df4562551043e37130db314c6.zip |
fix: Modern sync Driver Unique ID Position Attribute formatter
Diffstat (limited to 'modern/src/common/components')
-rw-r--r-- | modern/src/common/components/PositionValue.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modern/src/common/components/PositionValue.js b/modern/src/common/components/PositionValue.js index 58841939..cc2046da 100644 --- a/modern/src/common/components/PositionValue.js +++ b/modern/src/common/components/PositionValue.js @@ -18,6 +18,7 @@ import { formatVoltage, formatVolume, formatConsumption, + formatDriverUniqueId, } from '../util/formatter'; import { useAttributePreference, usePreference } from '../util/preferences'; import { useTranslation } from './LocalizationProvider'; @@ -81,6 +82,8 @@ const PositionValue = ({ position, property, attribute }) => { return value != null ? formatDistance(value, distanceUnit, t) : ''; case 'hours': return value != null ? formatNumericHours(value, t) : ''; + case 'driverUniqueId': + return value != null ? formatDriverUniqueId(value) : ''; default: if (typeof value === 'number') { return formatNumber(value); |