From 5d784c8dfb7c20a4e673fd1faf019f189770460b Mon Sep 17 00:00:00 2001 From: Scott Dickerson Date: Mon, 28 Aug 2023 09:50:48 -0400 Subject: [PATCH] :bug: Fix `getIconByRisk` in `answer-table.tsx` (#1316) While working on upgrading eslint (PR #1291), a switch/case `no-fallthrough` error was found in the `getIconByRisk` function in the `AnswerTable` component. This error would cause a risk of "red" to actually render as a risk of "yellow". Fixing it separately from the eslint upgrade seems like a good thing. Signed-off-by: Scott J Dickerson --- .../questionnaire/components/answer-table.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/app/pages/assessment-management/questionnaire/components/answer-table.tsx b/client/src/app/pages/assessment-management/questionnaire/components/answer-table.tsx index 3a7a26f77..86b351656 100644 --- a/client/src/app/pages/assessment-management/questionnaire/components/answer-table.tsx +++ b/client/src/app/pages/assessment-management/questionnaire/components/answer-table.tsx @@ -44,7 +44,7 @@ const AnswerTable: React.FC = ({ answers }) => { case "green": return ; case "red": - } status="danger" />; + return } status="danger" />; case "yellow": return } status="warning" />; default: