mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
Don't show uom for empty string
This commit is contained in:
@@ -36,7 +36,7 @@ export function formatValue(
|
|||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
(value as string) +
|
(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