Skip to content
Snippets Groups Projects
Commit 2088b3c4 authored by lain's avatar lain
Browse files

Add returned user to store after following.

parent fc268c48
No related branches found
No related tags found
No related merge requests found
......@@ -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]))
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment