Fix error transitioning to the tentative status
Some checks failed
Check usage of free licenses / build-static-assets (pull_request) Successful in 7m2s
Playwright Tests / test (pull_request) Successful in 22m52s
Add copyright notice / copyright_notice (pull_request) Failing after 2m45s

This commit is contained in:
Manuel Bustillo 2024-11-03 10:34:30 +01:00
parent 3b5d0918cd
commit 0d1901fa44

View File

@ -111,7 +111,7 @@ export default function guestsTable() {
{(guest.status === 'Invited' || guest.status === 'Tentative') && (
<>
<button data-guest-id={guest.id} onClick={handleConfirmGuest} className={classNames('green')}>Confirm</button>
{guest.status != 'Tentative' && <button data-guest-id={guest.id} onClick={handleDeclineGuest} className={classNames('yellow')}>Tentative</button>}
{guest.status != 'Tentative' && <button data-guest-id={guest.id} onClick={handleTentativeGuest} className={classNames('yellow')}>Tentative</button>}
<button data-guest-id={guest.id} onClick={handleDeclineGuest} className={classNames('red')}>Decline</button>
</>
)}