diff --git a/web/src/app/submissions/[submissionId]/_reviewButtons.tsx b/web/src/app/submissions/[submissionId]/_reviewButtons.tsx index 85e6601..2b9f049 100644 --- a/web/src/app/submissions/[submissionId]/_reviewButtons.tsx +++ b/web/src/app/submissions/[submissionId]/_reviewButtons.tsx @@ -25,7 +25,7 @@ async function ReviewButtonClicked(action: Action, submissionId: string) { }); // Check if the HTTP request was successful if (!response.ok) { - let errorDetails = await response.text(); + const errorDetails = await response.text(); // Throw an error with detailed information throw new Error(`HTTP error! status: ${response.status}, details: ${errorDetails}`); diff --git a/web/src/app/submit/page.tsx b/web/src/app/submit/page.tsx index 870cfd1..6f3c1b7 100644 --- a/web/src/app/submit/page.tsx +++ b/web/src/app/submit/page.tsx @@ -53,7 +53,7 @@ export default function SubmissionInfoPage() { // Check if the HTTP request was successful if (!response.ok) { - let errorDetails = await response.text(); + const errorDetails = await response.text(); // Throw an error with detailed information throw new Error(`HTTP error! status: ${response.status}, details: ${errorDetails}`);