add default properties to restore data when transaction is canceled in confirmation step

This commit is contained in:
Moriz Wahl 2022-03-22 17:53:51 +01:00
parent 61bc5efb11
commit 0a3f80ddc9

View File

@ -160,15 +160,18 @@ export default {
},
props: {
balance: { type: Number, default: 0 },
email: { type: String, default: '' },
amount: { type: Number, default: 0 },
memo: { type: String, default: '' },
},
data() {
return {
amountFocused: false,
emailFocused: false,
form: {
email: '',
amount: '',
memo: '',
email: this.email,
amount: this.amount ? String(this.amount) : '',
memo: this.memo,
amountValue: 0.0,
},
selected: SEND_TYPES.send,