Skip to content

Commit

Permalink
Remove rubric awaits
Browse files Browse the repository at this point in the history
  • Loading branch information
itamaroryan committed Feb 4, 2025
1 parent 5b4a5f2 commit a387a00
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apps/frontend/components/judging/rubrics/rubric-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ const RubricForm: React.FC<RubricFormProps> = ({
}

if (!fullMatch(rubric.data, formValues) || rubric.status !== newStatus) {
await handleSync(false, formValues, newStatus);
handleSync(false, formValues, newStatus);
}
}

Expand Down Expand Up @@ -405,9 +405,9 @@ const RubricForm: React.FC<RubricFormProps> = ({
</Button>
<Button
onClick={async () => {
await handleSync(true, getEmptyRubric(), 'empty');
handleSync(true, getEmptyRubric(), 'empty');
resetForm({ values: getEmptyRubric() });
await validateForm();
validateForm();
setResetDialog(false);
}}
>
Expand Down Expand Up @@ -435,7 +435,7 @@ const RubricForm: React.FC<RubricFormProps> = ({
variant="contained"
color="inherit"
onClick={async () => {
await handleSync(false, undefined, 'completed');
handleSync(false, undefined, 'completed');
}}
sx={actionButtonStyle}
>
Expand All @@ -450,7 +450,7 @@ const RubricForm: React.FC<RubricFormProps> = ({
variant="contained"
color="inherit"
onClick={async () => {
await handleSync(false, undefined, 'waiting-for-review');
handleSync(false, undefined, 'waiting-for-review');
}}
sx={actionButtonStyle}
>
Expand Down

0 comments on commit a387a00

Please sign in to comment.