Don't show uom for empty string

This commit is contained in:
MichaelDvP
2025-01-09 08:54:36 +01:00
parent 6be304f295
commit 7adba972e7

View File

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