fixed an issue with a bad response on submitting LOA
This commit is contained in:
@@ -13,9 +13,9 @@ export async function submitLOA(request: LOARequest): Promise<{ id?: number; err
|
||||
});
|
||||
|
||||
if (res.ok) {
|
||||
return res.json();
|
||||
return;
|
||||
} else {
|
||||
return { error: "Failed to submit LOA" };
|
||||
throw new Error("Failed to submit LOA");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -113,7 +113,6 @@ export async function getLoaPolicy(): Promise<string> {
|
||||
});
|
||||
if (res.ok) {
|
||||
const out = res.json();
|
||||
console.log(out);
|
||||
if (!out) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user