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

refactor/Removed experience step in configuration

parent f759087a
No related branches found
No related tags found
1 merge request!109Refactor/budget
Pipeline #285468 passed with warnings
......@@ -7,7 +7,7 @@ import { useRoute } from 'vue-router'
const router = useRouter()
// The configuration steps with path and order value.
const configurationSteps = {'/bank-account': 1,'/commitment': 2, '/experience': 3, '/suitable-challenges': 4, '/first-saving-goal': 5, '/finished-configuration': 6}
const configurationSteps = {'/bank-account': 1,'/commitment': 2, '/suitable-challenges': 3, '/first-saving-goal': 4, '/finished-configuration': 5}
const length = Object.keys(configurationSteps).length
let percentage = ref(1/length);
......
......@@ -31,7 +31,7 @@ const handleSubmit = () => {
else if (mediumRef.value.checked) choice = 'SOME'
else if (highRef.value.checked) choice = 'MUCH'
useConfigurationStore().setCommitment(choice)
router.push('/experience')
router.push('/suitable-challenges')
}
else {
errorMsg.value = 'Please select an option before continuing'
......
......@@ -12,7 +12,7 @@ export const useConfigurationStore = defineStore('ConfigurationStore', {
/** The user's commitment. */
commitment: '',
/** The user's experience. */
experience: '',
experience: 'NONE',
/** The challenges the user is facing. */
challenges: [] as Array<string>,
}),
......
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