aboutsummaryrefslogtreecommitdiff
path: root/modern/src/attributes/useDeviceAttributes.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-06 14:15:23 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-06 14:15:23 -0700
commit3812292cc4413efff1358eb34cc5bccab9d1cbae (patch)
tree8aa26184ec58a7f231869d427a28f8e999fa2093 /modern/src/attributes/useDeviceAttributes.js
parent1b513d2cbf4dde335f9a2822beaaeeb171816c8d (diff)
downloadtrackermap-web-3812292cc4413efff1358eb34cc5bccab9d1cbae.tar.gz
trackermap-web-3812292cc4413efff1358eb34cc5bccab9d1cbae.tar.bz2
trackermap-web-3812292cc4413efff1358eb34cc5bccab9d1cbae.zip
Handle unit attributes
Diffstat (limited to 'modern/src/attributes/useDeviceAttributes.js')
-rw-r--r--modern/src/attributes/useDeviceAttributes.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/modern/src/attributes/useDeviceAttributes.js b/modern/src/attributes/useDeviceAttributes.js
index f33fc065..8a4d886c 100644
--- a/modern/src/attributes/useDeviceAttributes.js
+++ b/modern/src/attributes/useDeviceAttributes.js
@@ -3,7 +3,8 @@ import { useMemo } from 'react';
export default (t) => useMemo(() => ({
speedLimit: {
name: t('attributeSpeedLimit'),
- type: 'string',
+ type: 'number',
+ subtype: 'speed',
},
'report.ignoreOdometer': {
name: t('attributeReportIgnoreOdometer'),