diff --git a/src/components/user_card_content/user_card_content.vue b/src/components/user_card_content/user_card_content.vue index 484597abd1..18a582e7ab 100644 --- a/src/components/user_card_content/user_card_content.vue +++ b/src/components/user_card_content/user_card_content.vue @@ -59,8 +59,9 @@ }, methods: { followUser () { - this.$store.state.api.backendInteractor.followUser(this.user.id) - .then((x) => console.log) + const store = this.$store + store.state.api.backendInteractor.followUser(this.user.id) + .then((followedUser) => store.commit('addNewUsers', [followedUser])) } } }