aboutsummaryrefslogtreecommitdiff
path: root/src/components/extra_buttons/extra_buttons.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/extra_buttons/extra_buttons.js')
-rw-r--r--src/components/extra_buttons/extra_buttons.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/components/extra_buttons/extra_buttons.js b/src/components/extra_buttons/extra_buttons.js
index 55a4caad..51892d0d 100644
--- a/src/components/extra_buttons/extra_buttons.js
+++ b/src/components/extra_buttons/extra_buttons.js
@@ -24,11 +24,8 @@ const ExtraButtons = {
},
pinStatus () {
this.refreshPopper()
- this.$store.dispatch('pinStatus', this.status.id).then((status) => {
- if (status.error) {
- this.$emit('onError', status.error)
- }
- })
+ this.$store.dispatch('pinStatus', this.status.id)
+ .catch(err => this.$emit('onError', err.error.error))
},
unpinStatus () {
this.refreshPopper()