Skip to content

Commit

Permalink
update: allow check-in leads to confirm non-hackers
Browse files Browse the repository at this point in the history
  • Loading branch information
samderanova committed Jan 26, 2024
1 parent 7c6bfd5 commit 822da0d
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,17 @@ function ParticipantAction({
variant="inline-link"
ariaLabel={`Confirm attendance for ${participant._id}`}
onClick={() => initiateConfirm(participant)}
disabled={nonHacker && isWaiverSigned && role !== "director"}
disabled={!isCheckinLead}
>
Confirm
</Button>
);

if (nonHacker) {
const content =
role !== "director"
? "Only directors are allowed to confirm non-hackers."
: "Must sign waiver first.";
if (role !== "director" || participant.status === ReviewStatus.reviewed) {
const content = !isCheckinLead
? "Only check-in leads can confirm non-hackers."
: "Must sign waiver first.";
if (!isCheckinLead || participant.status === ReviewStatus.reviewed) {
return (
<ParticipantActionPopover content={content}>
{confirmButton}
Expand Down

0 comments on commit 822da0d

Please sign in to comment.