diff --git a/frontend/src/components/GddSend/TransactionForm.spec.js b/frontend/src/components/GddSend/TransactionForm.spec.js index 51b2d0943..49b2174e0 100644 --- a/frontend/src/components/GddSend/TransactionForm.spec.js +++ b/frontend/src/components/GddSend/TransactionForm.spec.js @@ -200,7 +200,7 @@ describe('GddSend', () => { expect(wrapper.find('button[type="reset"]').text()).toBe('form.reset') }) - it('clears all fields on click and emits set-transaction', async () => { + it('clears all fields on click', async () => { await wrapper.find('#input-group-1').find('input').setValue('someone@watches.tv') await wrapper.find('#input-group-2').find('input').setValue('87.23') await wrapper.find('#input-group-3').find('textarea').setValue('Long enough') @@ -213,16 +213,6 @@ describe('GddSend', () => { expect(wrapper.vm.form.email).toBe('') expect(wrapper.vm.form.amount).toBe('') expect(wrapper.vm.form.memo).toBe('') - expect(wrapper.emitted('set-transaction')).toEqual([ - [ - { - selected: 'send', - email: '', - amount: 0, - memo: '', - }, - ], - ]) }) }) diff --git a/frontend/src/components/GddSend/TransactionForm.vue b/frontend/src/components/GddSend/TransactionForm.vue index 184c13f91..c1acf9925 100644 --- a/frontend/src/components/GddSend/TransactionForm.vue +++ b/frontend/src/components/GddSend/TransactionForm.vue @@ -192,12 +192,6 @@ export default { this.form.email = '' this.form.amount = '' this.form.memo = '' - this.$emit('set-transaction', { - selected: this.selected, - email: '', - amount: 0, - memo: '', - }) }, normalizeAmount(isValid) { this.amountFocused = false diff --git a/frontend/src/pages/Send.vue b/frontend/src/pages/Send.vue index 38f232fda..bbb415e54 100644 --- a/frontend/src/pages/Send.vue +++ b/frontend/src/pages/Send.vue @@ -129,6 +129,7 @@ export default { .then(() => { this.error = false this.updateTransactions({}) + this.transactionData = { ...EMPTY_TRANSACTION_DATA } this.currentTransactionStep = TRANSACTION_STEPS.transactionResultSendSuccess }) .catch((err) => {