aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-06 14:27:17 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-06 14:27:17 -0700
commite3460181198fa98c5320ebe28650160603797f33 (patch)
treea340b2a35ba17e1fdafc5ee69efca97300d9a367 /modern/src/common
parenta0406374030e930b8bd8032900e83b4a432ae28a (diff)
downloadtrackermap-web-e3460181198fa98c5320ebe28650160603797f33.tar.gz
trackermap-web-e3460181198fa98c5320ebe28650160603797f33.tar.bz2
trackermap-web-e3460181198fa98c5320ebe28650160603797f33.zip
Fix style issues
Diffstat (limited to 'modern/src/common')
-rw-r--r--modern/src/common/converter.js2
-rw-r--r--modern/src/common/formatter.js4
2 files changed, 4 insertions, 2 deletions
diff --git a/modern/src/common/converter.js b/modern/src/common/converter.js
index e70473ca..61e2dfe6 100644
--- a/modern/src/common/converter.js
+++ b/modern/src/common/converter.js
@@ -20,7 +20,7 @@ export const speedUnitString = (unit, t) => {
default:
return t('sharedKn');
}
-}
+};
export const speedFromKnots = (value, unit) => value * speedConverter(unit);
diff --git a/modern/src/common/formatter.js b/modern/src/common/formatter.js
index 06e3b12f..08e29bc4 100644
--- a/modern/src/common/formatter.js
+++ b/modern/src/common/formatter.js
@@ -1,5 +1,7 @@
import moment from 'moment';
-import { distanceFromMeters, distanceUnitString, speedFromKnots, speedUnitString, volumeFromLiters, volumeUnitString } from './converter';
+import {
+ distanceFromMeters, distanceUnitString, speedFromKnots, speedUnitString, volumeFromLiters, volumeUnitString,
+} from './converter';
import { prefixString } from './stringUtils';
export const formatBoolean = (value, t) => (value ? t('sharedYes') : t('sharedNo'));