From 08b1dd20d0f214c8ea4cbf5a5ac2dd96b4c6b71b Mon Sep 17 00:00:00 2001 From: Giovanni Martire Date: Sat, 24 Aug 2024 18:21:30 +0200 Subject: [PATCH] removed unused checkbox --- app/actions.ts | 5 +---- .../SubmitMatches/MatchForm/MatchForm.tsx | 17 ----------------- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/app/actions.ts b/app/actions.ts index b634b9b..6986194 100644 --- a/app/actions.ts +++ b/app/actions.ts @@ -215,11 +215,8 @@ export async function saveTournamentMatches( ids: matchIDs, }); - let isSubmissionVerified = - formData.get('verifierCheckBox') == 'on' ?? false; - let tournamentSubmit = await fetch( - `${process.env.REACT_APP_API_URL}/tournaments?verify=${isSubmissionVerified}`, + `${process.env.REACT_APP_API_URL}/tournaments`, { method: 'POST', headers: { diff --git a/components/SubmitMatches/MatchForm/MatchForm.tsx b/components/SubmitMatches/MatchForm/MatchForm.tsx index aca2ca8..f3d7197 100644 --- a/components/SubmitMatches/MatchForm/MatchForm.tsx +++ b/components/SubmitMatches/MatchForm/MatchForm.tsx @@ -262,23 +262,6 @@ export default function MatchForm({ matches can lead to a restriction - {userScopes.includes('verifier') && ( -
- { - console.log(e.target.checked); - setVerifierAccepted(e.target.checked); - }} - /> - setVerifierAccepted(!verifierAccepted)}> - Force verify - -
- )}