fix contributionIndex

This commit is contained in:
Danil Kovtonyuk 2020-02-29 23:57:47 +10:00
parent f4991132c4
commit f9840388d8

View File

@ -46,7 +46,6 @@ export default {
}, },
data() { data() {
return { return {
contributionIndex: null,
token: null, token: null,
status: { status: {
type: '', type: '',
@ -67,6 +66,14 @@ export default {
} else { } else {
return `Please, specify your name and organization.` return `Please, specify your name and organization.`
} }
},
contributionIndex: {
get() {
return this.$store.state.user.contributionIndex
},
set(value) {
this.$store.commit('user/SET_CONTRIBUTION_INDEX', value)
}
} }
}, },
async mounted() { async mounted() {