Skip to content

Commit

Permalink
fix: rename import, isCheckin logic
Browse files Browse the repository at this point in the history
  • Loading branch information
samderanova committed Jan 24, 2024
1 parent b5e3de8 commit afa8185
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import UserContext from "@/lib/admin/UserContext";
import { isCheckinLead } from "@/lib/admin/authorization";
import { Decision, PostAcceptedStatus } from "@/lib/admin/useApplicant";
import { Participant } from "@/lib/admin/useParticipants";
import ParticipantActionPopover from "./ParticipantActionPopver";
import ParticipantActionPopover from "./ParticipantActionPopover";

interface ParticipantActionProps {
participant: Participant;
Expand All @@ -29,7 +29,7 @@ function ParticipantAction({
variant="inline-link"
ariaLabel={`Promote ${participant._id} off waitlist`}
onClick={() => initiatePromotion(participant)}
disabled={isCheckin}
disabled={!isCheckin}
>
Promote
</Button>
Expand All @@ -47,7 +47,7 @@ function ParticipantAction({
);

if (participant.status === Decision.waitlisted) {
if (isCheckin) {
if (!isCheckin) {
return (
<ParticipantActionPopover content="Only check-in leads are allowed to promote walk-ins.">
{promoteButton}
Expand Down

0 comments on commit afa8185

Please sign in to comment.