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: { props: {
balance: { type: Number, default: 0 }, balance: { type: Number, default: 0 },
email: { type: String, default: '' },
amount: { type: Number, default: 0 },
memo: { type: String, default: '' },
}, },
data() { data() {
return { return {
amountFocused: false, amountFocused: false,
emailFocused: false, emailFocused: false,
form: { form: {
email: '', email: this.email,
amount: '', amount: this.amount ? String(this.amount) : '',
memo: '', memo: this.memo,
amountValue: 0.0, amountValue: 0.0,
}, },
selected: SEND_TYPES.send, selected: SEND_TYPES.send,