Change these to const
so the code builds
This commit is contained in:
parent
fa9a83a427
commit
298f3d9b8e
web/src/app
@ -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}`);
|
||||
|
Loading…
x
Reference in New Issue
Block a user