formatting

This commit is contained in:
proddy
2024-12-16 21:44:14 +01:00
parent 3558591480
commit 150695c185
3 changed files with 6 additions and 5 deletions

View File

@@ -34,7 +34,10 @@ export function formatValue(
if (value === undefined || typeof value === 'boolean') {
return '';
}
return (value as string) + (uom === undefined || uom === 0 ? '' : ' ' + DeviceValueUOM_s[uom]);
return (
(value as string) +
(uom === undefined || uom === 0 ? '' : ' ' + DeviceValueUOM_s[uom])
);
}
switch (uom) {