From f9840388d8899b813cb612a2b5a0b50592cd0930 Mon Sep 17 00:00:00 2001 From: Danil Kovtonyuk Date: Sat, 29 Feb 2020 23:57:47 +1000 Subject: [PATCH] fix contributionIndex --- pages/authorize-contribution.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pages/authorize-contribution.vue b/pages/authorize-contribution.vue index 5e3593d..4e4a5d6 100644 --- a/pages/authorize-contribution.vue +++ b/pages/authorize-contribution.vue @@ -46,7 +46,6 @@ export default { }, data() { return { - contributionIndex: null, token: null, status: { type: '', @@ -67,6 +66,14 @@ export default { } else { 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() {