fix: custom css is optional

This commit is contained in:
Vlad Stan 2022-11-28 16:37:42 +02:00 committed by dni ⚡
parent d8c34690eb
commit 5d1d13765d

View File

@ -767,7 +767,7 @@
this.createTheme(wallet, data) this.createTheme(wallet, data)
}, },
sendFormDataCharge: function () { sendFormDataCharge: function () {
this.formDialogCharge.data.custom_css = this.formDialogCharge.data.custom_css.id this.formDialogCharge.data.custom_css = this.formDialogCharge.data.custom_css?.id
const data = this.formDialogCharge.data const data = this.formDialogCharge.data
const wallet = this.g.user.wallets[0].inkey const wallet = this.g.user.wallets[0].inkey
data.amount = parseInt(data.amount) data.amount = parseInt(data.amount)