Skip to content

Commit

Permalink
15주차 작업 종료: 앨범, 프로필 api 연결 완료
Browse files Browse the repository at this point in the history
  • Loading branch information
ipcgrdn committed Dec 26, 2024
1 parent 4ead3f6 commit 702c576
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/modal/album-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ const AlbumModal = () => {

toast.success("앨범이 생성되었습니다!");
reset();
albumModal.onClose();
router.refresh();
albumModal.onClose();
} catch (error) {
if (axios.isAxiosError(error) && error.response?.data) {
const errorData = error.response.data;
Expand Down
2 changes: 1 addition & 1 deletion src/components/modal/confirm-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const ConfirmModal = () => {
}

toast.success("성공적으로 앨범을 삭제하였습니다.");
router.refresh();
router.back();
confirmModal.onClose();
return;
}
Expand Down

0 comments on commit 702c576

Please sign in to comment.