aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/common')
-rw-r--r--modern/src/common/components/PositionValue.js2
-rw-r--r--modern/src/common/util/formatter.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/common/components/PositionValue.js b/modern/src/common/components/PositionValue.js
index 6ff7c7ad..3d9af9b6 100644
--- a/modern/src/common/components/PositionValue.js
+++ b/modern/src/common/components/PositionValue.js
@@ -46,7 +46,7 @@ const PositionValue = ({ position, property, attribute }) => {
case 'batteryLevel':
return value != null ? formatPercentage(value, t) : '';
case 'coolantTemp':
- return formatCelsius(value);
+ return formatTemperature(value);
case 'alarm':
return formatAlarm(value, t);
case 'odometer':
diff --git a/modern/src/common/util/formatter.js b/modern/src/common/util/formatter.js
index 7f08ddcb..610b8dd0 100644
--- a/modern/src/common/util/formatter.js
+++ b/modern/src/common/util/formatter.js
@@ -17,7 +17,7 @@ export const formatNumber = (value, precision = 1) => Number(value.toFixed(preci
export const formatPercentage = (value) => `${value}%`;
-export const formatCelsius = (value) => `${value}°C`;
+export const formatTemperature = (value) => `${value}°C`;
export const formatTime = (value, format, hours12) => {
if (value) {