diff --git a/src/common/components/PositionValue.jsx b/src/common/components/PositionValue.jsx index ef1725bbea..a6d8171459 100644 --- a/src/common/components/PositionValue.jsx +++ b/src/common/components/PositionValue.jsx @@ -93,6 +93,10 @@ const PositionValue = ({ position, property, attribute }) => { } }; + if (value === undefined) { + return ''; + } + switch (key) { case 'image': case 'video': @@ -110,20 +114,11 @@ const PositionValue = ({ position, property, attribute }) => { case 'address': return ; case 'network': - if (value) { - return {t('sharedInfoTitle')}; - } - return ''; + return {t('sharedInfoTitle')}; case 'geofenceIds': - if (value) { - return ; - } - return ''; + return ; case 'driverUniqueId': - if (value) { - return ; - } - return ''; + return ; default: return formatValue(value); }