From 790b04ce1fa2e02b67eb3d5e02bfbb6810ecf8ec Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Sat, 21 Oct 2023 15:01:22 +0300 Subject: [PATCH] Fix being able to check in twice --- app/features/tournament/routes/to.$id.register.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/features/tournament/routes/to.$id.register.tsx b/app/features/tournament/routes/to.$id.register.tsx index 49a0b9239..35c0b7d41 100644 --- a/app/features/tournament/routes/to.$id.register.tsx +++ b/app/features/tournament/routes/to.$id.register.tsx @@ -170,6 +170,7 @@ export const action: ActionFunction = async ({ request, params }) => { } case "CHECK_IN": { validate(ownTeam); + validate(!ownTeam.checkedInAt, "You have already checked in"); validateCanCheckIn({ event, team: ownTeam,