mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 14:17:22 +01:00
fix(challenge): sync user when joining a challenge - make sure new tag is synced immediately
This commit is contained in:
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user