From 164619b05a354df112909e0db251722dde5a3624 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 2 May 2022 18:09:21 -0700 Subject: Fix style issues --- modern/src/components/PositionValue.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'modern/src/components') diff --git a/modern/src/components/PositionValue.js b/modern/src/components/PositionValue.js index b9e573fe..442ac859 100644 --- a/modern/src/components/PositionValue.js +++ b/modern/src/components/PositionValue.js @@ -1,5 +1,7 @@ import React from 'react'; -import { formatAlarm, formatBoolean, formatCoordinate, formatCourse, formatDistance, formatNumber, formatPercentage, formatSpeed, formatTime } from '../common/formatter'; +import { + formatAlarm, formatBoolean, formatCoordinate, formatCourse, formatDistance, formatNumber, formatPercentage, formatSpeed, formatTime, +} from '../common/formatter'; import { useAttributePreference, usePreference } from '../common/preferences'; import { useTranslation } from '../LocalizationProvider'; @@ -34,7 +36,7 @@ const PositionValue = ({ position, property, attribute }) => { case 'odometer': case 'distance': case 'totalDistance': - return formatDistance(value, distanceUnit, t) + return formatDistance(value, distanceUnit, t); default: if (typeof value === 'number') { return formatNumber(value); @@ -43,7 +45,7 @@ const PositionValue = ({ position, property, attribute }) => { } return value; } - } + }; return (<>{formatValue(value)}); }; -- cgit v1.2.3