Commit d9a9c33b authored by Fatih Acet's avatar Fatih Acet

IssueNotesRefactor: Add catch handler to toggleAward action.

parent a32f291a
......@@ -83,7 +83,10 @@ export default {
const { awardName, noteId } = data;
const endpoint = this.notesById[noteId].toggle_award_path;
this.$store.dispatch('toggleAward', { endpoint, awardName, noteId });
this.$store.dispatch('toggleAward', { endpoint, awardName, noteId })
.catch(() => {
new Flash('Something went wrong on our end.'); // eslint-disable-line
});
});
},
checkLocationHash() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment