remove onReset() EMPTY_TRANSACTION_DATA

This commit is contained in:
ogerly 2021-10-21 22:18:22 +02:00
parent 8f517f1b26
commit 626dde9da1
2 changed files with 3 additions and 4 deletions

View File

@ -77,9 +77,9 @@ describe('SendOverview', () => {
await wrapper.findComponent({ name: 'TransactionConfirmation' }).vm.$emit('on-reset')
expect(wrapper.findComponent({ name: 'TransactionForm' }).exists()).toBeTruthy()
expect(wrapper.vm.transactionData).toEqual({
email: '',
amount: 0,
memo: '',
email: 'user@example.org',
amount: 23.45,
memo: 'Make the best of it!',
})
})

View File

@ -115,7 +115,6 @@ export default {
this.loading = false
},
onReset() {
this.transactionData = { ...EMPTY_TRANSACTION_DATA }
this.currentTransactionStep = 0
},
updateTransactions(pagination) {