From a2cce09650b8931a5535e7ecc26d660ac8cf3ebf Mon Sep 17 00:00:00 2001 From: junyoung2015 Date: Mon, 28 Oct 2024 14:41:44 +0900 Subject: [PATCH] =?UTF-8?q?[FE]=20HOTFIX:=20=EC=B8=B5=20=EC=A0=95=EB=B3=B4?= =?UTF-8?q?=EA=B0=80=20localStorage=20recoil-persist=20=EC=97=90=20?= =?UTF-8?q?=EC=A1=B4=EC=9E=AC=ED=95=98=EC=A7=80=20=EC=95=8A=EC=9D=84=20?= =?UTF-8?q?=EA=B2=BD=EC=9A=B0=20TypeError=20=EB=B0=9C=EC=83=9D=ED=95=98?= =?UTF-8?q?=EB=8A=94=20=EB=AC=B8=EC=A0=9C=20=ED=95=B4=EA=B2=B0=20(#1701)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/Cabinet/pages/MainPage.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/Cabinet/pages/MainPage.tsx b/frontend/src/Cabinet/pages/MainPage.tsx index c98123f84..3550822bd 100644 --- a/frontend/src/Cabinet/pages/MainPage.tsx +++ b/frontend/src/Cabinet/pages/MainPage.tsx @@ -220,9 +220,9 @@ const IconWrapperStyled = styled.div<{ disabled: boolean }>` } `; -const AlertStyled = styled.div<{ currentFloor: number }>` - visibility: ${(props) => - DISABLED_FLOOR.includes(props.currentFloor.toString()) +const AlertStyled = styled.div<{ currentFloor: number | undefined }>` + visibility: ${({ currentFloor }) => + currentFloor && DISABLED_FLOOR.includes(currentFloor.toString()) ? "hidden" : "visible"}; height: 30px;