Exlude considered guests from the list of invitations
Some checks failed
Playwright Tests / test (pull_request) Has been skipped
Check usage of free licenses / build-static-assets (pull_request) Successful in 50s
Build Nginx-based docker image / build-static-assets (push) Has been cancelled
Add copyright notice / copyright_notice (pull_request) Successful in 1m3s
Some checks failed
Playwright Tests / test (pull_request) Has been skipped
Check usage of free licenses / build-static-assets (pull_request) Successful in 50s
Build Nginx-based docker image / build-static-assets (push) Has been cancelled
Add copyright notice / copyright_notice (pull_request) Successful in 1m3s
This commit is contained in:
parent
72691f7070
commit
98d9a2544d
@ -110,9 +110,11 @@ export default function InvitationsBoard({ guests, invitations: originalInvitati
|
|||||||
const [invitations, setInvitations] = useState<Invitation[]>(originalInvitations);
|
const [invitations, setInvitations] = useState<Invitation[]>(originalInvitations);
|
||||||
const [unassignedGuests, setUnassignedGuests] = useState<Guest[]>(
|
const [unassignedGuests, setUnassignedGuests] = useState<Guest[]>(
|
||||||
guests.filter(
|
guests.filter(
|
||||||
(guest) => !invitations.some((invitation) =>
|
(guest) =>
|
||||||
invitation.guests.some((invitedGuest) => invitedGuest.id === guest.id)
|
guest.status !== 'considered' &&
|
||||||
)
|
!invitations.some((invitation) =>
|
||||||
|
invitation.guests.some((invitedGuest) => invitedGuest.id === guest.id)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user