Skip to content

Commit

Permalink
fix: 모달 추가 시점 조절 (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoSelf1 committed Aug 25, 2024
1 parent aa12890 commit 2b35da3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/request-custom/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ const RequestCustom = () => {

try {
await submitForm({ phone_number: phoneNumber, prefer_style: text });
setIsModalOpen(true);
} catch (error) {
console.error('실패: ', error);
alert('요청 전송에 실패했습니다. 다시 시도해주세요.');
} finally {
setIsModalOpen(true);
setLoading(false);
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/app/request-notification/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ const RequestNotification = () => {

try {
await submitForm({ phone_number: phoneNumber, prefer_style: '알림요청' });
setIsModalOpen(true);
} catch (error) {
console.error('실패: ', error);
alert('요청 전송에 실패했습니다. 다시 시도해주세요.');
} finally {
setIsModalOpen(true);
setLoading(false);
}
};
Expand Down

0 comments on commit 2b35da3

Please sign in to comment.