mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-12 06:57:47 +00:00
fix(challenge): sync user when joining a challenge - make sure new tag is synced immediately
This commit is contained in:
parent
4f2656f8f6
commit
b2833ac4a2
1 changed files with 4 additions and 1 deletions
|
|
@ -525,7 +525,10 @@ export default {
|
|||
this.membersLoaded = false;
|
||||
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 () {
|
||||
this.$root.$emit('bv::show::modal', 'leave-challenge-modal');
|
||||
|
|
|
|||
Loading…
Reference in a new issue