From e0aa9f6c0e180e87c015b45a207170f5c5c022f4 Mon Sep 17 00:00:00 2001 From: Mike Heneghan Date: Thu, 1 Feb 2024 16:18:10 +0000 Subject: [PATCH] refactor: stack case statements with the same return MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - As per: https://github.com/theopensystemslab/planx-new/pull/2716#discussion_r1474692688 Co-authored-by: Dafydd Llŷr Pearson --- editor.planx.uk/src/components/Feedback/index.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/editor.planx.uk/src/components/Feedback/index.tsx b/editor.planx.uk/src/components/Feedback/index.tsx index a60cf9b7f9..e9f5d932d2 100644 --- a/editor.planx.uk/src/components/Feedback/index.tsx +++ b/editor.planx.uk/src/components/Feedback/index.tsx @@ -103,7 +103,6 @@ const Feedback: React.FC = () => { const shouldScrollToView = () => { switch (currentFeedbackView) { case "banner": - return false; case "thanks": return false; default: