diff options
Diffstat (limited to 'modern/src/common/formatter.js')
-rw-r--r-- | modern/src/common/formatter.js | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/modern/src/common/formatter.js b/modern/src/common/formatter.js index 22d1654..db0b7ff 100644 --- a/modern/src/common/formatter.js +++ b/modern/src/common/formatter.js @@ -47,15 +47,7 @@ export const formatDistance = (value, unit, t) => { }; export const formatSpeed = (value, unit, t) => { - switch (unit) { - case 'kmh': - return `${(value * 1.852).toFixed(0)} ${t('sharedKmh')}`; - case 'mph': - return `${(value * 1.15078).toFixed(0)} ${t('sharedMph')}`; - case 'kn': - default: - return `${(value * 1).toFixed(0)} ${t('sharedKn')}`; - } + return `${(value * 1).toFixed(0)} ${t('sharedKmh')}`; }; export const formatVolume = (value, unit, t) => { |