Profile Overview
diff --git a/frontend/pages/index.vue b/frontend/pages/index.vue
index e650a31..bce614f 100644
--- a/frontend/pages/index.vue
+++ b/frontend/pages/index.vue
@@ -47,7 +47,7 @@
loading.value = true;
// Print Values of registerFields
- const { data, error } = await api.register({
+ const { error } = await api.register({
user: {
name: registerFields[0].value,
email: registerFields[1].value,
@@ -58,11 +58,14 @@
if (error) {
toast.error('Problem registering user');
- } else {
- toast.success('User registered');
+ return;
}
+ toast.success('User registered');
+
loading.value = false;
+ loginFields[0].value = registerFields[1].value;
+ registerForm.value = false;
}
const loginFields = [
@@ -107,76 +110,106 @@
-
-
-
-
-
-
-
-
-
-
-
-