Skip to content

Commit

Permalink
Add. revert redirection
Browse files Browse the repository at this point in the history
  • Loading branch information
jee-eun-k committed Aug 11, 2024
1 parent a1f0975 commit d7bd13a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/record/EditRecordPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -557,13 +557,13 @@ const EditRecordPage = (): ReactElement => {
setIsSuccessPopup(true);
setPopupText('기록 등록에 성공했습니다.');
setSelectedDays([]);
// navigate('/record');
navigate('/record');
} else {
setIsSuccessPopup(false);
setPopupText('기록 등록에 실패했습니다.');
}
})
.catch((error) => {
.catch(() => {
// TODO: error handling messages
setIsPopupShow(() => true);
setIsSuccessPopup(false);
Expand Down

0 comments on commit d7bd13a

Please sign in to comment.