Skip to content

Render fuel as volume #1545

Description

@ivan-avalos

Currently, Traccar renders fuel without units.

This should, however, be a volume unit.

diff --git a/src/common/components/PositionValue.jsx b/src/common/components/PositionValue.jsx
index 7a6a1843..360bd696 100644
--- a/src/common/components/PositionValue.jsx
+++ b/src/common/components/PositionValue.jsx
@@ -67,6 +67,8 @@ const PositionValue = ({ position, property, attribute }) => {
         return value != null ? formatPercentage(value) : '';
       case 'volume':
         return value != null ? formatVolume(value, volumeUnit, t) : '';
+      case 'fuel':
+        return value != null ? formatVolume(value, volumeUnit, t) : '';
       case 'fuelConsumption':
         return value != null ? formatConsumption(value, t) : '';
       case 'coolantTemp':

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions