From 9cc851c49872828c02cae2931d9b6e9d35a2b4f6 Mon Sep 17 00:00:00 2001 From: hhhello Date: Sun, 19 Jan 2025 22:05:51 +0900 Subject: [PATCH] =?UTF-8?q?RSVP=20=EA=B3=A0=EC=B9=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/template/dialog/rsvp/CreateRsvpDialog.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/component/template/dialog/rsvp/CreateRsvpDialog.tsx b/src/component/template/dialog/rsvp/CreateRsvpDialog.tsx index 6ad6bba..ccf757e 100644 --- a/src/component/template/dialog/rsvp/CreateRsvpDialog.tsx +++ b/src/component/template/dialog/rsvp/CreateRsvpDialog.tsx @@ -48,16 +48,16 @@ function CreateRsvpDialog( return; } - if (guestPhone.value === '' && rsvp.attendPhoneStatus) { + if (rsvp.attendPhoneStatus && guestPhone.value === '') { alert('연락처를 입력해 주세요'); return; } - if (guestCnt.value === '' && rsvp.attendGuestCntStatus) { + if (rsvp.attendGuestCntStatus && guestCnt.value === '') { alert('동행 인원을 입력해 주세요'); return; } - + await weddingApi.createRsvp({ url, guestType: guestType === 0 ? GuestType.GROOM : GuestType.BRIDE,