Skip to content

Commit

Permalink
RSVP 고침
Browse files Browse the repository at this point in the history
  • Loading branch information
hhhello0507 committed Jan 19, 2025
1 parent e38c7c7 commit 9cc851c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/component/template/dialog/rsvp/CreateRsvpDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9cc851c

Please sign in to comment.