aboutsummaryrefslogtreecommitdiff
path: root/modern/src
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src')
-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 6ffed9de..a819a018 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 value ? formatPercentage(value, t) : '';
+ return value != null ? formatPercentage(value, t) : '';
case 'alarm':
return formatAlarm(value, t);
case 'odometer':
case 'distance':
case 'totalDistance':
- return value ? formatDistance(value, distanceUnit, t) : '';
+ return value != null ? formatDistance(value, distanceUnit, t) : '';
case 'hours':
- return value ? formatNumericHours(value, t) : '';
+ return value != null ? formatNumericHours(value, t) : '';
default:
if (typeof value === 'number') {
return formatNumber(value);