Skip to content

Commit fae58eb

Browse files
committed
fix: 모달 재오픈 시 임시저장 편지 최신화 되지 않는 문제 수정
1 parent 041c78b commit fae58eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/Home/components/ShowDraftModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const ShowDraftModal = ({ onClose }: ShowDraftModalProps) => {
2121
.catch((error) => {
2222
console.error('❌ 임시저장된 편지를 불러오는데 실패했습니다', error);
2323
});
24-
}, []);
24+
}, [onClose]);
2525

2626
return (
2727
<ModalOverlay closeOnOutsideClick onClose={onClose}>

0 commit comments

Comments
 (0)