aboutsummaryrefslogtreecommitdiff
path: root/modern/src/components/PositionValue.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/components/PositionValue.js')
-rw-r--r--modern/src/components/PositionValue.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/modern/src/components/PositionValue.js b/modern/src/components/PositionValue.js
index b9e573fe..442ac859 100644
--- a/modern/src/components/PositionValue.js
+++ b/modern/src/components/PositionValue.js
@@ -1,5 +1,7 @@
import React from 'react';
-import { formatAlarm, formatBoolean, formatCoordinate, formatCourse, formatDistance, formatNumber, formatPercentage, formatSpeed, formatTime } from '../common/formatter';
+import {
+ formatAlarm, formatBoolean, formatCoordinate, formatCourse, formatDistance, formatNumber, formatPercentage, formatSpeed, formatTime,
+} from '../common/formatter';
import { useAttributePreference, usePreference } from '../common/preferences';
import { useTranslation } from '../LocalizationProvider';
@@ -34,7 +36,7 @@ const PositionValue = ({ position, property, attribute }) => {
case 'odometer':
case 'distance':
case 'totalDistance':
- return formatDistance(value, distanceUnit, t)
+ return formatDistance(value, distanceUnit, t);
default:
if (typeof value === 'number') {
return formatNumber(value);
@@ -43,7 +45,7 @@ const PositionValue = ({ position, property, attribute }) => {
}
return value;
}
- }
+ };
return (<>{formatValue(value)}</>);
};