diff --git a/src/app/request-custom/page.tsx b/src/app/request-custom/page.tsx index c805d66..9166cd3 100644 --- a/src/app/request-custom/page.tsx +++ b/src/app/request-custom/page.tsx @@ -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); } }; diff --git a/src/app/request-notification/page.tsx b/src/app/request-notification/page.tsx index 875ee5d..4bed7a9 100644 --- a/src/app/request-notification/page.tsx +++ b/src/app/request-notification/page.tsx @@ -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); } };