From d7d84269013b44fa18e479f2f22155a99de06793 Mon Sep 17 00:00:00 2001 From: atanasster Date: Mon, 10 May 2021 10:55:55 +0300 Subject: [PATCH] fix: hide coverage stats if no coverage total --- .../src/ComponentStats/ComponentStats.tsx | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/ui/blocks/src/ComponentStats/ComponentStats.tsx b/ui/blocks/src/ComponentStats/ComponentStats.tsx index c9f7507c8..6a08bc7ad 100644 --- a/ui/blocks/src/ComponentStats/ComponentStats.tsx +++ b/ui/blocks/src/ComponentStats/ComponentStats.tsx @@ -86,16 +86,18 @@ export const ComponentStats: FC<{ color="status_failed" /> )} - + {coverage.total && ( + + )} ); }