diff options
Diffstat (limited to 'modern/src/common')
-rw-r--r-- | modern/src/common/util/formatter.js | 2 |
1 files changed, 1 insertions, 1 deletions
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']; |