1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

fix: health stats number (#7688)

Prevent showing "undefined%" in new Health statistics.
This commit is contained in:
Tymoteusz Czech 2024-07-29 12:49:03 +02:00 committed by GitHub
parent 5c4bc6f7a0
commit d825b49f43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -61,22 +61,22 @@ export const HealthStats: FC<IHealthStatsProps> = ({
<StyledStatsRow>
<StyledIcon />
Instance health
<StyledMainValue>{`${value}%`}</StyledMainValue>
<StyledMainValue>{`${value || 0}%`}</StyledMainValue>
</StyledStatsRow>
</StyledSection>
<Divider />
<StyledSection>
<StyledStatsRow>
Healthy flags
<StyledValue>{healthy}</StyledValue>
<StyledValue>{healthy || 0}</StyledValue>
</StyledStatsRow>
<StyledStatsRow>
Stale flags
<StyledValue>{stale}</StyledValue>
<StyledValue>{stale || 0}</StyledValue>
</StyledStatsRow>
<StyledStatsRow>
Potencially stale flags
<StyledValue>{potentiallyStale}</StyledValue>
<StyledValue>{potentiallyStale || 0}</StyledValue>
</StyledStatsRow>
</StyledSection>
</div>