diff --git a/src/components/Configuration/ConfigurationSteps/SuitableChallenges.vue b/src/components/Configuration/ConfigurationSteps/SuitableChallenges.vue index 439d65333cfacdd03d81e0a281b4d31298b931af..44c9c455d7f5751ce9fabfabd0b53897567bfe3c 100644 --- a/src/components/Configuration/ConfigurationSteps/SuitableChallenges.vue +++ b/src/components/Configuration/ConfigurationSteps/SuitableChallenges.vue @@ -76,7 +76,7 @@ const signUpUser = async () => { role: response.role, }); useUserInfoStore().resetPassword() - await router.push({ name: 'home' }); + await router.push("/first-saving-goal") } catch (error) { errorMsg.value = handleUnknownError(error); @@ -89,7 +89,11 @@ const handleSubmit = () => { } useConfigurationStore().setChallenges(chosenChallenges.value) console.log(useConfigurationStore().getChallenges) - router.push("/first-saving-goal") + try { + signUpUser() + } catch (e) { + console.log(e) + } } </script>