fixed an issue with a bad response on submitting LOA

This commit is contained in:
2025-12-11 20:37:00 -05:00
parent 710b24e5a7
commit f0ac2dca02
3 changed files with 23 additions and 19 deletions

View File

@@ -58,11 +58,13 @@ const df = new Intl.DateTimeFormat('en-US', {
day: 'numeric'
});
const userStore = useUserStore()
//form stuff
import { loaSchema } from '@shared/schemas/loaSchema'
import { toTypedSchema } from "@vee-validate/zod";
import Calendar from "../ui/calendar/Calendar.vue";
import { useUserStore } from "@/stores/user";
const { handleSubmit, values, resetForm } = useForm({
validationSchema: toTypedSchema(loaSchema),
@@ -81,6 +83,7 @@ const onSubmit = handleSubmit(async (values) => {
await adminSubmitLOA(out);
} else {
await submitLOA(out);
userStore.loadUser();
}
})