Skip to content

Fix the display of the reservoir capacity percentage #140

@antonio06

Description

@antonio06

We have this component (path):

scr/pods/embalse/components/reservoir-card-gauge.tsx

Right now we can see the reservoir capacity percentage, whether it is above or below the limit.

We need to add a condition so that:

if the percentage is less than 100, we display the percentage received from the database.

if the percentage is greater than 100, we directly display 100%.

Something like this:

<GaugeChart percentage={percentage > 100 ? 100 : percentage} measurementDate={measurementDate} />

Metadata

Metadata

Assignees

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