fix(challenge): sync user when joining a challenge - make sure new tag is synced immediately

This commit is contained in:
Matteo Pagliazzi
2020-06-29 17:05:37 +02:00
parent 4f2656f8f6
commit b2833ac4a2

View File

@@ -525,7 +525,10 @@ export default {
this.membersLoaded = false; this.membersLoaded = false;
this.members = []; this.members = [];
await this.$store.dispatch('tasks:fetchUserTasks', { forceLoad: true }); await Promise.all([
this.$store.dispatch('user:fetch', { forceLoad: true }),
this.$store.dispatch('tasks:fetchUserTasks', { forceLoad: true }),
]);
}, },
async leaveChallenge () { async leaveChallenge () {
this.$root.$emit('bv::show::modal', 'leave-challenge-modal'); this.$root.$emit('bv::show::modal', 'leave-challenge-modal');