fixed error preventing LOA form from providing user feedback on submit when used from admin panel
This commit is contained in:
@@ -31,9 +31,9 @@ export async function adminSubmitLOA(request: LOARequest): Promise<{ id?: number
|
||||
});
|
||||
|
||||
if (res.ok) {
|
||||
return res.json();
|
||||
return
|
||||
} else {
|
||||
return { error: "Failed to submit LOA" };
|
||||
throw new Error("Failed to submit LOA");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user