mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
Don't show uom for empty string
This commit is contained in:
@@ -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])
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user