aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/components
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/common/components')
-rw-r--r--modern/src/common/components/PositionValue.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/modern/src/common/components/PositionValue.js b/modern/src/common/components/PositionValue.js
index 27f793c6..6ffed9de 100644
--- a/modern/src/common/components/PositionValue.js
+++ b/modern/src/common/components/PositionValue.js
@@ -43,15 +43,15 @@ const PositionValue = ({ position, property, attribute }) => {
case 'altitude':
return formatAltitude(value, altitudeUnit, t);
case 'batteryLevel':
- return formatPercentage(value, t);
+ return value ? formatPercentage(value, t) : '';
case 'alarm':
return formatAlarm(value, t);
case 'odometer':
case 'distance':
case 'totalDistance':
- return formatDistance(value, distanceUnit, t);
+ return value ? formatDistance(value, distanceUnit, t) : '';
case 'hours':
- return formatNumericHours(value, t);
+ return value ? formatNumericHours(value, t) : '';
default:
if (typeof value === 'number') {
return formatNumber(value);