diff --git a/src/components/follow_button/follow_button.js b/src/components/follow_button/follow_button.js index e4d12ec63..7ad91f236 100644 --- a/src/components/follow_button/follow_button.js +++ b/src/components/follow_button/follow_button.js @@ -63,7 +63,7 @@ export default { this.inProgress = true useUsersStore() .followUser(this.relationship.id) - .then(() => { + .finally(() => { this.inProgress = false }) }, @@ -79,12 +79,8 @@ export default { this.inProgress = true useUsersStore() .unfollowUser(this.relationship.id) - .then(() => { + .finally(() => { this.inProgress = false - store.commit('removeStatus', { - timeline: 'friends', - userId: this.relationship.id, - }) }) this.hideConfirmUnfollow() diff --git a/src/components/mute_card/mute_card.js b/src/components/mute_card/mute_card.js index 441c28f1c..ca14eb9ca 100644 --- a/src/components/mute_card/mute_card.js +++ b/src/components/mute_card/mute_card.js @@ -32,7 +32,7 @@ const MuteCard = { }, methods: { unmuteUser() { - this.$store.dispatch('unmuteUser', this.userId) + useUsersStore().unmuteUser(this.user.id) }, muteUser() { this.$refs.timedMuteDialog.optionallyPrompt()