From f18786b822a25e28f43b1f7681b6d13417cd5ece Mon Sep 17 00:00:00 2001 From: Jacob Shandling <61553566+jacobshandling@users.noreply.github.com> Date: Fri, 23 Feb 2024 17:33:24 -0600 Subject: [PATCH] =?UTF-8?q?UI=20=E2=80=93=20handle=20missing=20vuln.severi?= =?UTF-8?q?ty=20(#17143)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/utilities/helpers.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/utilities/helpers.tsx b/frontend/utilities/helpers.tsx index 5781a9a851..13488702cd 100644 --- a/frontend/utilities/helpers.tsx +++ b/frontend/utilities/helpers.tsx @@ -459,8 +459,8 @@ export const formatPackForClient = (pack: IPack): IPack => { return pack; }; -export const formatSeverity = (float: number | null): string => { - if (float === null) { +export const formatSeverity = (float?: number | null): string => { + if (float === null || float === undefined) { return DEFAULT_EMPTY_CELL_VALUE; }