diff options
author | Matjaž Črnko <m.crnko@txt.si> | 2023-06-16 11:34:23 +0200 |
---|---|---|
committer | Matjaž Črnko <m.crnko@txt.si> | 2023-06-16 11:34:23 +0200 |
commit | b77d0f87b24d90d5e0d8da43aa11d08690880755 (patch) | |
tree | 8fc85a02fc67ebd47bd63f4e7cfc3a76e7733fe1 /modern/src/common/util | |
parent | e2aeaa191688bb245113f8280e7e1edd44c08bf3 (diff) | |
download | trackermap-web-b77d0f87b24d90d5e0d8da43aa11d08690880755.tar.gz trackermap-web-b77d0f87b24d90d5e0d8da43aa11d08690880755.tar.bz2 trackermap-web-b77d0f87b24d90d5e0d8da43aa11d08690880755.zip |
fix: Modern sync Consumption, Volume Position Attribute formatter
Diffstat (limited to 'modern/src/common/util')
-rw-r--r-- | modern/src/common/util/formatter.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modern/src/common/util/formatter.js b/modern/src/common/util/formatter.js index 3ef83dba..0f7d2cc8 100644 --- a/modern/src/common/util/formatter.js +++ b/modern/src/common/util/formatter.js @@ -21,6 +21,8 @@ export const formatTemperature = (value) => `${value}°C`; export const formatVoltage = (value, t) => `${value} ${t('sharedVoltAbbreviation')}`; +export const formatConsumption = (value, t) => `${value} ${t('sharedLiterPerHourAbbreviation')}`; + export const formatTime = (value, format, hours12) => { if (value) { const m = moment(value); |