LOA-Fixes #112

Merged
Ajdj100 merged 5 commits from LOA-Fixes into main 2025-12-16 18:16:35 -06:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 9196a86570 - Show all commits

View File

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

View File

@@ -286,8 +286,8 @@ const maxEndDate = computed(() => {
</h2>
<p class="max-w-md text-muted-foreground">
Your Leave of Absence request has been submitted successfully.
It will take effect on your selected start date.
{{ adminMode ? 'You have successfully submitted a Leave of Absence for a member.' : `Your Leave of Absence request has been submitted successfully.
It will take effect on your selected start date.` }}
</p>