diff options
author | Ashutosh Bishnoi <mail2bishnoi@gmail.com> | 2020-11-28 13:23:13 +0530 |
---|---|---|
committer | Ashutosh Bishnoi <mail2bishnoi@gmail.com> | 2020-11-28 13:23:13 +0530 |
commit | 7a431062aa79ac9c9524638e60cb4b06323ea697 (patch) | |
tree | 30bb8992d0a74d5a12faaac36fbb89c3d478edf1 /modern/src/common | |
parent | 9c2dbcf00b944cca546875af4f0bcab695119a40 (diff) | |
download | trackermap-web-7a431062aa79ac9c9524638e60cb4b06323ea697.tar.gz trackermap-web-7a431062aa79ac9c9524638e60cb4b06323ea697.tar.bz2 trackermap-web-7a431062aa79ac9c9524638e60cb4b06323ea697.zip |
Chart report code improvements and refactoring
Diffstat (limited to 'modern/src/common')
-rw-r--r-- | modern/src/common/converter.js | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/modern/src/common/converter.js b/modern/src/common/converter.js index 8fdb4b86..e48b0760 100644 --- a/modern/src/common/converter.js +++ b/modern/src/common/converter.js @@ -1,4 +1,4 @@ -const speedConverter = (value, unit) => { +export const speedConverter = (value, unit) => { let factor; switch (unit) { case 'kmh': @@ -11,14 +11,3 @@ const speedConverter = (value, unit) => { } return (value * factor).toFixed(2); }; - -export const getConverter = (key) => { - switch (key) { - case 'speed': - return speedConverter; - default: - return function (value) { - return value; - } - } -};
\ No newline at end of file |