aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/components/PositionValue.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-21 07:20:14 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-21 07:20:14 -0700
commit2110974542f2700b5d801a540eded8e850be04aa (patch)
tree677886959b0cdb56ad3cee95966649e695edafd9 /modern/src/common/components/PositionValue.js
parentadad08583e7829ce004388d949b8829cb7f92065 (diff)
downloadtrackermap-web-2110974542f2700b5d801a540eded8e850be04aa.tar.gz
trackermap-web-2110974542f2700b5d801a540eded8e850be04aa.tar.bz2
trackermap-web-2110974542f2700b5d801a540eded8e850be04aa.zip
Fix hours and accumulators
Diffstat (limited to 'modern/src/common/components/PositionValue.js')
-rw-r--r--modern/src/common/components/PositionValue.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/modern/src/common/components/PositionValue.js b/modern/src/common/components/PositionValue.js
index 5810ae5e..83fc0ef2 100644
--- a/modern/src/common/components/PositionValue.js
+++ b/modern/src/common/components/PositionValue.js
@@ -43,6 +43,8 @@ const PositionValue = ({ position, property, attribute }) => {
case 'distance':
case 'totalDistance':
return formatDistance(value, distanceUnit, t);
+ case 'hours':
+ return formatNumber(value / 1000);
default:
if (typeof value === 'number') {
return formatNumber(value);