From d825b49f43d61df2dcdce3734327193470f3581d Mon Sep 17 00:00:00 2001 From: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com> Date: Mon, 29 Jul 2024 12:49:03 +0200 Subject: [PATCH] fix: health stats number (#7688) Prevent showing "undefined%" in new Health statistics. --- .../insights/componentsStat/HealthStats/HealthStats.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/component/insights/componentsStat/HealthStats/HealthStats.tsx b/frontend/src/component/insights/componentsStat/HealthStats/HealthStats.tsx index 45b428b966..b5db90254d 100644 --- a/frontend/src/component/insights/componentsStat/HealthStats/HealthStats.tsx +++ b/frontend/src/component/insights/componentsStat/HealthStats/HealthStats.tsx @@ -61,22 +61,22 @@ export const HealthStats: FC = ({ Instance health - {`${value}%`} + {`${value || 0}%`} Healthy flags - {healthy} + {healthy || 0} Stale flags - {stale} + {stale || 0} Potencially stale flags - {potentiallyStale} + {potentiallyStale || 0}