1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-06-14 01:16:17 +02: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> <StyledStatsRow>
<StyledIcon /> <StyledIcon />
Instance health Instance health
<StyledMainValue>{`${value}%`}</StyledMainValue> <StyledMainValue>{`${value || 0}%`}</StyledMainValue>
</StyledStatsRow> </StyledStatsRow>
</StyledSection> </StyledSection>
<Divider /> <Divider />
<StyledSection> <StyledSection>
<StyledStatsRow> <StyledStatsRow>
Healthy flags Healthy flags
<StyledValue>{healthy}</StyledValue> <StyledValue>{healthy || 0}</StyledValue>
</StyledStatsRow> </StyledStatsRow>
<StyledStatsRow> <StyledStatsRow>
Stale flags Stale flags
<StyledValue>{stale}</StyledValue> <StyledValue>{stale || 0}</StyledValue>
</StyledStatsRow> </StyledStatsRow>
<StyledStatsRow> <StyledStatsRow>
Potencially stale flags Potencially stale flags
<StyledValue>{potentiallyStale}</StyledValue> <StyledValue>{potentiallyStale || 0}</StyledValue>
</StyledStatsRow> </StyledStatsRow>
</StyledSection> </StyledSection>
</div> </div>