fixed an issue with a bad response on submitting LOA
This commit is contained in:
@@ -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();
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user