diff --git a/frontend/src/pages/Send.spec.js b/frontend/src/pages/Send.spec.js index 9b35712bc..1f7c9ca9f 100644 --- a/frontend/src/pages/Send.spec.js +++ b/frontend/src/pages/Send.spec.js @@ -269,7 +269,7 @@ describe('Send', () => { }) it('toasts an error message', () => { - expect(toastErrorSpy).toBeCalledWith({ message: 'OUCH!' }) + expect(toastErrorSpy).toBeCalledWith('OUCH!') }) }) }) diff --git a/frontend/src/pages/Send.vue b/frontend/src/pages/Send.vue index 2b0a095a6..513e038c4 100644 --- a/frontend/src/pages/Send.vue +++ b/frontend/src/pages/Send.vue @@ -132,8 +132,8 @@ export default { this.transactionData = { ...EMPTY_TRANSACTION_DATA } this.currentTransactionStep = TRANSACTION_STEPS.transactionResultSendSuccess }) - .catch((err) => { - this.errorResult = err.message + .catch((error) => { + this.errorResult = error.message this.error = true this.currentTransactionStep = TRANSACTION_STEPS.transactionResultSendError }) @@ -152,7 +152,7 @@ export default { this.updateTransactions({}) }) .catch((error) => { - this.toastError(error) + this.toastError(error.message) }) break default: