Skip to content

Commit

Permalink
[FE] HOTFIX: 층 정보가 localStorage recoil-persist 에 존재하지 않을 경우 TypeError…
Browse files Browse the repository at this point in the history
… 발생하는 문제 해결 (#1701)
  • Loading branch information
junyoung2015 authored Oct 28, 2024
1 parent 78cab37 commit a2cce09
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/Cabinet/pages/MainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a2cce09

Please sign in to comment.