Skip to content
Snippets Groups Projects
Commit 1f274394 authored by Jens Christian Aanestad's avatar Jens Christian Aanestad
Browse files

Bug/Fixed configuration error when choosing challenges

parent b6f4c2d7
No related branches found
No related tags found
1 merge request!39Feat/budget
Pipeline #278419 failed
......@@ -64,13 +64,15 @@ const onClick = async () => {
*/
const signUpPayLoad = {
"commitment": useConfigurationStore().getCommitment,
"experience": useConfigurationStore().getExperience,
"challenges": useConfigurationStore().getChallenges,
"firstName": useUserInfoStore().getFirstName,
"lastName": useUserInfoStore().getLastname,
"email": useUserInfoStore().getEmail,
"password": useUserInfoStore().getPassword,
"configuration": {
"commitment": useConfigurationStore().getCommitment,
"experience": useConfigurationStore().getExperience,
"challenges": useConfigurationStore().getChallenges
}
};
let response = await AuthenticationService.signup({ requestBody: signUpPayLoad });
......
......@@ -62,6 +62,9 @@ const handleSubmit = async () => {
email: emailRef.value,
role: response.role,
});
console.log()
await router.push({ name: 'home' });
} catch (error: any) {
errorMsg.value = handleUnknownError(error);
......
......@@ -323,5 +323,6 @@ i {
overflow-y: auto;
overflow-x: hidden;
max-height: 100vh;
}
</style>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment