aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/formatter.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-09-28 16:34:15 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-09-28 16:34:15 -0700
commit9d72339c8365da80154f635dc8184b135a53bab0 (patch)
treed25c944cba1d70b0e3ceabc0b0a845b4ca479f80 /modern/src/common/formatter.js
parent2cda355e9d651e778794577c08fd0837f06e7b51 (diff)
downloadtrackermap-web-9d72339c8365da80154f635dc8184b135a53bab0.tar.gz
trackermap-web-9d72339c8365da80154f635dc8184b135a53bab0.tar.bz2
trackermap-web-9d72339c8365da80154f635dc8184b135a53bab0.zip
Fix position formatting
Diffstat (limited to 'modern/src/common/formatter.js')
-rw-r--r--modern/src/common/formatter.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/common/formatter.js b/modern/src/common/formatter.js
index 29108cec..057041e2 100644
--- a/modern/src/common/formatter.js
+++ b/modern/src/common/formatter.js
@@ -1,7 +1,7 @@
import moment from 'moment';
import t from '../common/localization';
-export const formatPosition = (key, value) => {
+export const formatPosition = (value, key) => {
if (value != null && typeof value == 'object') {
value = value[key];
}