Skip to content

Commit

Permalink
fix: non-hacker confirm button disable conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
samderanova committed Jan 26, 2024
1 parent 5f9019c commit 93a4021
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/api/src/admin/participant_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ async def confirm_attendance_non_hacker(uid: str, director: User) -> None:
if not record or record["role"] not in NON_HACKER_ROLES:
raise ValueError

update_status = await mongodb_handler.raw_update_one(
update_status = await mongodb_handler.update_one(
Collection.USERS,
{"_id": uid},
{"status": Status.ATTENDING},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function ParticipantAction({
variant="inline-link"
ariaLabel={`Confirm attendance for ${participant._id}`}
onClick={() => initiateConfirm(participant)}
disabled={!isCheckin}
disabled={nonHacker && isWaiverSigned && role !== "director"}
>
Confirm
</Button>
Expand Down

0 comments on commit 93a4021

Please sign in to comment.