mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-20 15:56:35 +00:00
Fix for monetary entities (#12378)
This commit is contained in:
parent
6865791596
commit
c305dd4cd5
@ -33,6 +33,7 @@ export const computeStateDisplay = (
|
||||
return formatNumber(compareState, locale, {
|
||||
style: "currency",
|
||||
currency: stateObj.attributes.unit_of_measurement,
|
||||
minimumFractionDigits: 2,
|
||||
});
|
||||
} catch (_err) {
|
||||
// fallback to default
|
||||
|
Loading…
x
Reference in New Issue
Block a user