From fd3a593c681dd09e3a7a04d60ab7cec36d471ece Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 24 May 2022 08:44:58 -0700 Subject: Fix style issue --- modern/src/common/util/formatter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modern/src/common/util/formatter.js') diff --git a/modern/src/common/util/formatter.js b/modern/src/common/util/formatter.js index c28d492d..43f172f9 100644 --- a/modern/src/common/util/formatter.js +++ b/modern/src/common/util/formatter.js @@ -14,7 +14,7 @@ export const formatDate = (value, format = 'YYYY-MM-DD HH:mm') => moment(value). export const formatTime = (value, format = 'YYYY-MM-DD HH:mm:ss') => moment(value).format(format); export const formatStatus = (value, t) => t(prefixString('deviceStatus', value)); -export const formatAlarm = (value, t) => value ? t(prefixString('alarm', value)) : ''; +export const formatAlarm = (value, t) => (value ? t(prefixString('alarm', value)) : ''); export const formatCourse = (value) => { const courseValues = ['N', 'NE', 'E', 'SE', 'S', 'SW', 'W', 'NW']; -- cgit v1.2.3