Skip to content

Commit e9bd950

Browse files
committed
adding fallback in getSeverityColor
1 parent cafd687 commit e9bd950

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers/verificationRequestCardHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const getSeverityColor = (severity: string): string => {
2626
const levels: SeverityLevel[] = ["critical", "high", "medium", "low"];
2727
const matchedLevel = levels.find((level) => severityStr.startsWith(level));
2828

29-
return SEVERITY_COLOR_MAP[matchedLevel];
29+
return SEVERITY_COLOR_MAP[matchedLevel] || colors.neutralSecondary;
3030
};
3131

3232
export const truncateUrl = (url: string) => {

0 commit comments

Comments
 (0)