Skip to content
Snippets Groups Projects
Commit 0fc53dc3 authored by Victor Ekholt Gunrell Kaste's avatar Victor Ekholt Gunrell Kaste
Browse files

feat: SuitableChallenges now creates account ands redirects

parent 87a1d237
Branches userserializer_automated_tests
No related tags found
1 merge request!71Feat/redesign roadmap
...@@ -76,7 +76,7 @@ const signUpUser = async () => { ...@@ -76,7 +76,7 @@ const signUpUser = async () => {
role: response.role, role: response.role,
}); });
useUserInfoStore().resetPassword() useUserInfoStore().resetPassword()
await router.push({ name: 'home' }); await router.push("/first-saving-goal")
} }
catch (error) { catch (error) {
errorMsg.value = handleUnknownError(error); errorMsg.value = handleUnknownError(error);
...@@ -89,7 +89,11 @@ const handleSubmit = () => { ...@@ -89,7 +89,11 @@ const handleSubmit = () => {
} }
useConfigurationStore().setChallenges(chosenChallenges.value) useConfigurationStore().setChallenges(chosenChallenges.value)
console.log(useConfigurationStore().getChallenges) console.log(useConfigurationStore().getChallenges)
router.push("/first-saving-goal") try {
signUpUser()
} catch (e) {
console.log(e)
}
} }
</script> </script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment