diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-24 08:44:58 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-24 08:44:58 -0700 |
commit | fd3a593c681dd09e3a7a04d60ab7cec36d471ece (patch) | |
tree | bc4861b0b6222213cba15f12b5f9769d2034fd6d | |
parent | 5db441f8578a8dcbb52f824329946e49c6e95a8e (diff) | |
download | trackermap-web-fd3a593c681dd09e3a7a04d60ab7cec36d471ece.tar.gz trackermap-web-fd3a593c681dd09e3a7a04d60ab7cec36d471ece.tar.bz2 trackermap-web-fd3a593c681dd09e3a7a04d60ab7cec36d471ece.zip |
Fix style issue
-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']; |