Skip to content

Commit

Permalink
fix: coverage 0 when no coverage files
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed May 9, 2021
1 parent a78a0a5 commit 709f1c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/blocks/src/ComponentStats/ComponentStats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const ComponentStats: FC<{
value={
coverage.total
? (100 * (coverage.covered / coverage.total)).toFixed(0)
: ''
: '0'
}
percent
/>
Expand Down

0 comments on commit 709f1c9

Please sign in to comment.