Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix confirmation and is_finished
Browse files Browse the repository at this point in the history
laadvo committed Nov 12, 2024
1 parent af8c89e commit d73a07f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -117,7 +117,7 @@ export default function SideBySideExpertView() {
confirmed = confirm("Are you sure want to continue with the next submission? You did not yet evaluate all metrics!");
}

if (globalSubmissionIndex === submissionsLength - 1) {
if (globalSubmissionIndex === submissionsLength - 1 && confirmed) {
confirmed = confirm("Are you sure you want to finish the evaluation? Once you finish, you can no longer make any changes!");
}

@@ -144,7 +144,7 @@ export default function SideBySideExpertView() {
if (currentSubmissionIndex > 0) {
saveProgress();
}
}, [currentSubmissionIndex]);
}, [currentSubmissionIndex, isFinishedEvaluating]);

const handlePrevious = () => {
// If we are not at the first submission, just decrement the submission index

0 comments on commit d73a07f

Please sign in to comment.