Skip to content

Commit

Permalink
Show feedback form immediately when checked into event
Browse files Browse the repository at this point in the history
  • Loading branch information
SheepTester committed Apr 18, 2024
1 parent 3ac4d1a commit f37d250
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pages/events/[uuid].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ const EventPage = ({ token, event, attended, feedback: initFeedback }: EventPage
<Feedback feedback={feedback} />
</div>
);
} else if (started && token) {
} else if ((started || attended) && token) {
// People can check in before the event starts, and the check-in modal
// prompts them to add feedback. If they click "Add feedback" before the
// event starts, it should still let them give feedback
feedbackForm = (
<FeedbackForm event={event} attended={attended} authToken={token} onSubmit={setFeedback} />
);
Expand Down

0 comments on commit f37d250

Please sign in to comment.