aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-24 08:44:58 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-24 08:44:58 -0700
commitfd3a593c681dd09e3a7a04d60ab7cec36d471ece (patch)
treebc4861b0b6222213cba15f12b5f9769d2034fd6d /modern/src/common
parent5db441f8578a8dcbb52f824329946e49c6e95a8e (diff)
downloadtrackermap-web-fd3a593c681dd09e3a7a04d60ab7cec36d471ece.tar.gz
trackermap-web-fd3a593c681dd09e3a7a04d60ab7cec36d471ece.tar.bz2
trackermap-web-fd3a593c681dd09e3a7a04d60ab7cec36d471ece.zip
Fix style issue
Diffstat (limited to 'modern/src/common')
-rw-r--r--modern/src/common/util/formatter.js2
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'];