diff options
| author | taehoon <th.dev91@gmail.com> | 2019-04-25 04:30:08 -0400 |
|---|---|---|
| committer | taehoon <th.dev91@gmail.com> | 2019-07-10 21:01:07 -0400 |
| commit | 646d197bf181eff7d0df268d5eda2debcda3f4fe (patch) | |
| tree | 4a81af0142e290026250680f0a4926ccb2370812 /src/components/user_card/user_card.js | |
| parent | e9e6daa76e6adee236e643cc45deee0d2c7ee542 (diff) | |
mutate updated relationship to the store
Diffstat (limited to 'src/components/user_card/user_card.js')
| -rw-r--r-- | src/components/user_card/user_card.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/user_card/user_card.js b/src/components/user_card/user_card.js index d7fe71d0..e019ebbd 100644 --- a/src/components/user_card/user_card.js +++ b/src/components/user_card/user_card.js @@ -138,10 +138,10 @@ export default { this.$store.dispatch('unmuteUser', this.user.id) }, subscribeUser () { - return this.$store.state.api.backendInteractor.subscribeUser(this.user.id) + return this.$store.dispatch('subscribeUser', this.user.id) }, unsubscribeUser () { - return this.$store.state.api.backendInteractor.unsubscribeUser(this.user.id) + return this.$store.dispatch('unsubscribeUser', this.user.id) }, setProfileView (v) { if (this.switcher) { |
