Default to 0% if no coverage is reported

This commit is contained in:
Jesse Bye
2021-02-25 14:05:45 -08:00
committed by GitHub
parent 2b40f319c3
commit 0ae94e3ed6
@@ -232,7 +232,7 @@ export const SonarQubeCard = ({
link={value.getComponentMeasuresUrl('COVERAGE')}
title="Coverage"
leftSlot={<Percentage value={value.metrics.coverage} />}
rightSlot={<Value value={`${value.metrics.coverage}%`} />}
rightSlot={<Value value={`${value.metrics.coverage||0}%`} />}
/>
<RatingCard
title="Duplications"