mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Merge pull request #1701 from gradido/frontend_send_show_errors_properly
Fix: Frontend show proper error message on failed send
This commit is contained in:
commit
fb7d69025f
@ -155,8 +155,6 @@ describe('Send', () => {
|
||||
})
|
||||
})
|
||||
|
||||
/* LINK */
|
||||
|
||||
describe('transaction form link', () => {
|
||||
beforeEach(async () => {
|
||||
apolloMutationMock.mockResolvedValue({
|
||||
@ -261,7 +259,7 @@ describe('Send', () => {
|
||||
})
|
||||
|
||||
it('toasts an error message', () => {
|
||||
expect(toastErrorSpy).toBeCalledWith({ message: 'OUCH!' })
|
||||
expect(toastErrorSpy).toBeCalledWith('OUCH!')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -133,8 +133,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
|
||||
})
|
||||
@ -153,7 +153,7 @@ export default {
|
||||
this.updateTransactions({})
|
||||
})
|
||||
.catch((error) => {
|
||||
this.toastError(error)
|
||||
this.toastError(error.message)
|
||||
})
|
||||
break
|
||||
default:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user