changed ui package

This commit is contained in:
PxlLoewe
2025-03-07 14:42:34 -07:00
parent 829e78a47d
commit 6fc20a66ef
5 changed files with 64 additions and 37 deletions

View File

@@ -1,11 +0,0 @@
import { Event, Participant } from "@repo/db";
export const participantCompleted = (
event: Event,
participant: Participant,
) => {
if (event.finisherMoodleCourseId && !participant.finisherMoodleCurseCompleted)
return false;
if (event.hasPresenceEvents && !participant.attended) return false;
return true;
};