Skip to content

Commit ab62367

Browse files
authored
Merge pull request #195 from Lemoncode/feature/#140-fix-the-display-of-the-reservoir-capacity-percentage
Capacity percentage fixed
2 parents a7c9601 + 9676aab commit ab62367

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

front/src/pods/embalse/components/reservoir-card-gauge.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ export const ReservoirCardGauge: React.FC<Props> = (props) => {
1717
<h2 id="gauge-title" className="text-center">
1818
{name}
1919
</h2>
20-
<GaugeChart percentage={percentage} measurementDate={measurementDate} />
20+
<GaugeChart percentage={percentage > 100 ? 100 : percentage} measurementDate=
21+
{measurementDate} />
2122
<GaugeLegend
2223
currentVolume={currentVolume}
2324
totalCapacity={totalCapacity}

0 commit comments

Comments
 (0)