Change these to const so the code builds

This commit is contained in:
rhpidfyre 2025-03-24 18:45:07 -04:00
parent fa9a83a427
commit 298f3d9b8e
2 changed files with 2 additions and 2 deletions
web/src/app
submissions/[submissionId]
submit

@ -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}`);

@ -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}`);