8 lines
269 B
TypeScript
8 lines
269 B
TypeScript
import { Event, Participant } from "@repo/db";
|
|
|
|
export const eventCompleted = (event: Event, participant?: Participant) => {
|
|
if (!participant) return false;
|
|
if (event.finisherMoodleCourseId && !participant.finisherMoodleCurseCompleted) return false;
|
|
return true;
|
|
};
|