From b77d0f87b24d90d5e0d8da43aa11d08690880755 Mon Sep 17 00:00:00 2001 From: Matjaž Črnko Date: Fri, 16 Jun 2023 11:34:23 +0200 Subject: fix: Modern sync Consumption, Volume Position Attribute formatter --- modern/src/common/util/formatter.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modern/src/common/util') 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); -- cgit v1.2.3