diff --git a/resources/js/views/EmailVerify.vue b/resources/js/views/EmailVerify.vue
index 4eac2b4..f0f38cc 100644
--- a/resources/js/views/EmailVerify.vue
+++ b/resources/js/views/EmailVerify.vue
@@ -2,7 +2,7 @@
-
+
Email Verify
Enter your verification code below. If you have not yet
@@ -22,7 +22,7 @@
-
+
Email Verified!
Hurrah, Your email has been verified!
@@ -34,21 +34,6 @@
>
-
- Verification Error
-
- A server error occurred verifying your email. The STEMMechanics
- team have been notified and will fix the issue soon!
-
-
- Login
-
-
@@ -65,7 +50,7 @@ import SMLoading from "../components/SMLoading.vue";
// const { executeRecaptcha, recaptchaLoaded } = useReCaptcha();
const formDone = ref(false);
-const formError = ref(false);
+const formObject = ref(null);
let form = reactive(
Form({
code: FormControl("", And([Required(), Min(6), Max(6)])),
@@ -86,7 +71,6 @@ const handleSubmit = async () => {
formDone.value = true;
} catch (error) {
- formError.value = true;
form.apiErrors(error, (message) => {
useToastStore().addToast({
title: "An error occurred",
@@ -110,6 +94,7 @@ if (useRoute().query.code !== undefined) {
form.controls.code.value = code;
}
- handleSubmit();
+ // handleSubmit();
+ formObject.value.handleSubmit();
}