Skip to content

Commit

Permalink
[feat] boostcampwm-2022#179 재실행시 다시열기 체크되는 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
JJongBin committed Dec 11, 2022
1 parent e301c4d commit 7dc8334
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions frontend/src/component/Info/Help.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import * as style from './info.styled';
const Help = () => {
const [isShowModal, setIsShowModal] = useState(false);
const [animation, setAnimation] = useState('show');
const [setOpen, isSetOpen] = useState(true);
const [setOpen, isSetOpen] = useState(false);

const setOpenModal = () => {
isSetOpen(!setOpen);
Expand All @@ -31,7 +31,10 @@ const Help = () => {

useEffect(() => {
const openHelp = localStorage.getItem('openHelp');
if (openHelp === 'open') setIsShowModal(true);
if (openHelp === 'open') {
setIsShowModal(true);
isSetOpen(true);
}
}, []);

return (
Expand Down

0 comments on commit 7dc8334

Please sign in to comment.