Skip to content

Commit 7e23c71

Browse files
committed
fix: update hover message for zero vulnerabilities (#418)
Signed-off-by: Ruben Romero Montes <[email protected]>
1 parent adbaba8 commit 7e23c71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/components/ChartCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const ChartCard = ({summary}: { summary: Summary }) => {
3737
{x: 'Medium', y: medium},
3838
{x: 'Low', y: low},
3939
] : [{x: 'Empty', y: 1e-10}]}
40-
labels={({datum}) => `${datum.x}: ${datum.y}`}
40+
labels={({datum}) => hasValues ? `${datum.x}: ${datum.y}` : 'No vulnerabilities'}
4141
legendData={legendData}
4242
legendOrientation="vertical"
4343
legendPosition="right"

0 commit comments

Comments
 (0)