diff options
Diffstat (limited to 'modern/src/main')
-rw-r--r-- | modern/src/main/DeviceRow.jsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modern/src/main/DeviceRow.jsx b/modern/src/main/DeviceRow.jsx index 8d40e139..d9c1a189 100644 --- a/modern/src/main/DeviceRow.jsx +++ b/modern/src/main/DeviceRow.jsx @@ -119,15 +119,15 @@ const DeviceRow = ({ data, index, style }) => { {position.attributes.hasOwnProperty('batteryLevel') && ( <Tooltip title={`${t('positionBatteryLevel')}: ${formatPercentage(position.attributes.batteryLevel)}`}> <IconButton size="small"> - {position.attributes.batteryLevel > 70 ? ( + {(position.attributes.batteryLevel > 70 && ( position.attributes.charge ? (<BatteryChargingFullIcon fontSize="small" className={classes.success} />) : (<BatteryFullIcon fontSize="small" className={classes.success} />) - ) : position.attributes.batteryLevel > 30 ? ( + )) || (position.attributes.batteryLevel > 30 && ( position.attributes.charge ? (<BatteryCharging60Icon fontSize="small" className={classes.warning} />) : (<Battery60Icon fontSize="small" className={classes.warning} />) - ) : ( + )) || ( position.attributes.charge ? (<BatteryCharging20Icon fontSize="small" className={classes.error} />) : (<Battery20Icon fontSize="small" className={classes.error} />) |