mirror of
https://github.com/home-assistant/frontend.git
synced 2026-05-21 23:48:58 +01:00
Ensure 0 does not get formatted to empty string (#8971)
This commit is contained in:
@@ -58,7 +58,7 @@ export const formatNumber = (
|
||||
).format(Number(num));
|
||||
}
|
||||
}
|
||||
return num ? num.toString() : "";
|
||||
return num.toString();
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user