From 709f1c910a322a6e35bd80dd4c1618a3785e404c Mon Sep 17 00:00:00 2001 From: atanasster Date: Sun, 9 May 2021 18:05:08 +0300 Subject: [PATCH] fix: coverage 0 when no coverage files --- ui/blocks/src/ComponentStats/ComponentStats.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/blocks/src/ComponentStats/ComponentStats.tsx b/ui/blocks/src/ComponentStats/ComponentStats.tsx index 2cf3984da..c9f7507c8 100644 --- a/ui/blocks/src/ComponentStats/ComponentStats.tsx +++ b/ui/blocks/src/ComponentStats/ComponentStats.tsx @@ -92,7 +92,7 @@ export const ComponentStats: FC<{ value={ coverage.total ? (100 * (coverage.covered / coverage.total)).toFixed(0) - : '' + : '0' } percent />