Skip to content

Commit

Permalink
removed unused checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
AkinariHex committed Aug 24, 2024
1 parent 4336782 commit 08b1dd2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
5 changes: 1 addition & 4 deletions app/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
17 changes: 0 additions & 17 deletions components/SubmitMatches/MatchForm/MatchForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -262,23 +262,6 @@ export default function MatchForm({
matches can lead to a restriction
</span>
</div>
{userScopes.includes('verifier') && (
<div className={clsx(styles.row, styles.checkbox)}>
<input
type="checkbox"
name="verifierCheckBox"
id="verifierCheckBox"
checked={verifierAccepted}
onChange={(e) => {
console.log(e.target.checked);
setVerifierAccepted(e.target.checked);
}}
/>
<span onClick={() => setVerifierAccepted(!verifierAccepted)}>
Force verify
</span>
</div>
)}
</div>
<div className={styles.field}>
<span className={styles.inputError}>
Expand Down

0 comments on commit 08b1dd2

Please sign in to comment.