remove onReset in created, add EMPTY_TRANSACTION_DATA in send function

This commit is contained in:
ogerly 2022-03-30 08:07:32 +02:00
parent d013bd9de1
commit 40c7f96b20
2 changed files with 3 additions and 2 deletions

View File

@ -184,7 +184,8 @@ export default {
memo: this.form.memo,
})
},
onReset() {
onReset(event) {
event.preventDefault()
this.form.email = ''
this.form.amount = ''
this.form.memo = ''
@ -212,7 +213,6 @@ export default {
},
},
created() {
this.onReset()
this.form.email = this.recipientEmail ? this.recipientEmail : ''
},
}

View File

@ -148,6 +148,7 @@ export default {
.then((result) => {
this.$emit('set-tunneled-email', null)
this.code = result.data.createTransactionLink.code
this.transactionData = { ...EMPTY_TRANSACTION_DATA }
this.currentTransactionStep = TRANSACTION_STEPS.transactionResultLink
this.updateTransactions({})
})