From f69e71a346468987a0abaff28c92c4f80d82f429 Mon Sep 17 00:00:00 2001 From: Zach Hancock Date: Wed, 11 Oct 2023 11:25:51 -0400 Subject: [PATCH] fix: double submit race condition --- .../proctored_exam/SubmitProctoredExamInstructions.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/instructions/proctored_exam/SubmitProctoredExamInstructions.jsx b/src/instructions/proctored_exam/SubmitProctoredExamInstructions.jsx index 247caeab..6ba477d1 100644 --- a/src/instructions/proctored_exam/SubmitProctoredExamInstructions.jsx +++ b/src/instructions/proctored_exam/SubmitProctoredExamInstructions.jsx @@ -20,8 +20,9 @@ const SubmitProctoredExamInstructions = () => { const handleSubmitClick = () => { if (examHasLtiProvider) { window.location.assign(submitLtiAttemptUrl); + } else { + submitExam(); } - submitExam(); }; return (