diff options
author | Iván Ávalos <avalos@disroot.org> | 2024-04-25 20:18:35 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2024-04-25 20:18:35 -0600 |
commit | 1a7f95baad1939589e6a23bd31b42b8e094a736a (patch) | |
tree | bca6bc47b52fc4f41070f769907eefb19f8fe01a /src/common/components/PositionValue.jsx | |
parent | 1e3347a1f247a4330fdc01249494d080758c4363 (diff) | |
download | trackermap-web-master.tar.gz trackermap-web-master.tar.bz2 trackermap-web-master.zip |
Diffstat (limited to 'src/common/components/PositionValue.jsx')
-rw-r--r-- | src/common/components/PositionValue.jsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/components/PositionValue.jsx b/src/common/components/PositionValue.jsx index b1f8f656..8be686e3 100644 --- a/src/common/components/PositionValue.jsx +++ b/src/common/components/PositionValue.jsx @@ -83,7 +83,10 @@ const PositionValue = ({ position, property, attribute }) => { case 'totalDistance': return value != null ? formatDistance(value, distanceUnit, t) : ''; case 'hours': - return value != null ? formatNumericHours(value, t) : ''; + const v = position.attributes.hasOwnProperty('io16') + ? (parseInt(position.attributes.io16) * 60 * 1000) + : value; + return v != null ? formatNumericHours(v, t) : ''; default: if (typeof value === 'number') { return formatNumber(value); |