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 () => { ...@@ -64,13 +64,15 @@ const onClick = async () => {
*/ */
const signUpPayLoad = { const signUpPayLoad = {
"commitment": useConfigurationStore().getCommitment,
"experience": useConfigurationStore().getExperience,
"challenges": useConfigurationStore().getChallenges,
"firstName": useUserInfoStore().getFirstName, "firstName": useUserInfoStore().getFirstName,
"lastName": useUserInfoStore().getLastname, "lastName": useUserInfoStore().getLastname,
"email": useUserInfoStore().getEmail, "email": useUserInfoStore().getEmail,
"password": useUserInfoStore().getPassword, "password": useUserInfoStore().getPassword,
"configuration": {
"commitment": useConfigurationStore().getCommitment,
"experience": useConfigurationStore().getExperience,
"challenges": useConfigurationStore().getChallenges
}
}; };
let response = await AuthenticationService.signup({ requestBody: signUpPayLoad }); let response = await AuthenticationService.signup({ requestBody: signUpPayLoad });
......
...@@ -62,6 +62,9 @@ const handleSubmit = async () => { ...@@ -62,6 +62,9 @@ const handleSubmit = async () => {
email: emailRef.value, email: emailRef.value,
role: response.role, role: response.role,
}); });
console.log()
await router.push({ name: 'home' }); await router.push({ name: 'home' });
} catch (error: any) { } catch (error: any) {
errorMsg.value = handleUnknownError(error); errorMsg.value = handleUnknownError(error);
......
...@@ -323,5 +323,6 @@ i { ...@@ -323,5 +323,6 @@ i {
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
max-height: 100vh; max-height: 100vh;
}
</style> </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