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

Merge branch 'refactor/Budget' into 'main'

Refactor/budget

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