auto-formatting

This commit is contained in:
proddy
2025-01-11 18:59:10 +01:00
parent 960baadeca
commit d6e72e72d7

View File

@@ -36,7 +36,9 @@ export function formatValue(
} }
return ( return (
(value as string) + (value as string) +
(value === '' || uom === undefined || uom === 0 ? '' : ' ' + DeviceValueUOM_s[uom]) (value === '' || uom === undefined || uom === 0
? ''
: ' ' + DeviceValueUOM_s[uom])
); );
} }