From 20602ae478a28c9fcb9a501712f79bd0728a082f Mon Sep 17 00:00:00 2001 From: Florian Sommariva <1926041+dtrucs@users.noreply.github.com> Date: Thu, 8 Aug 2024 15:37:31 +0200 Subject: [PATCH] Simplify ternary condition in BurgerMenuSection --- .../components/Header/BurgerMenuSection/BurgerMenuSection.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/Header/BurgerMenuSection/BurgerMenuSection.tsx b/frontend/src/components/Header/BurgerMenuSection/BurgerMenuSection.tsx index 152c2a937..ec9057722 100644 --- a/frontend/src/components/Header/BurgerMenuSection/BurgerMenuSection.tsx +++ b/frontend/src/components/Header/BurgerMenuSection/BurgerMenuSection.tsx @@ -37,7 +37,7 @@ export const BurgerMenuSection: React.FC = ({ const closeIcon = ; const { openState, setOpenState } = useBurgerMenuSection(); const updatePanelState = (openPanelIds: string[]) => { - openPanelIds.length > 0 ? setOpenState('OPENED') : setOpenState('CLOSED'); + setOpenState(openPanelIds.length > 0 ? 'OPENED' : 'CLOSED'); }; if (!items && !languages) { return {title};