Skip to content

Commit

Permalink
Fix linter issues
Browse files Browse the repository at this point in the history
Signed-off-by: Mikhail Sazanov <m@sazanof.ru>
  • Loading branch information
Mikhail Sazanov committed Oct 15, 2022
1 parent bea0181 commit b2b90c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/components/NavigationOutbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ export default {
this.attempts++
this.failedMessaged.map(async (message) => {
if (!message.pending) {
promises.push(this.$store.dispatch('outbox/sendMessage', { id: message.id }).catch((err) => {
console.log(err)
promises.push(this.$store.dispatch('outbox/sendMessage', { id: message.id }).catch(() => {
// TODO write pending state
}))
}
return message
Expand All @@ -119,7 +119,6 @@ export default {
this.sending = false
})
},

},
}
</script>
Expand Down
2 changes: 1 addition & 1 deletion src/store/outbox/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default {
...message,
sentAt: undefined,
}, message.id)
commit('updateMessage', { message: Object.assign({ aborted: true }, updatedMessage)})
commit('updateMessage', { message: Object.assign({ aborted: true }, updatedMessage) })
return updatedMessage
},

Expand Down

0 comments on commit b2b90c9

Please sign in to comment.