diff --git a/lnbits/extensions/watchonly/static/components/payment/payment.js b/lnbits/extensions/watchonly/static/components/payment/payment.js index a2be844b..386e882b 100644 --- a/lnbits/extensions/watchonly/static/components/payment/payment.js +++ b/lnbits/extensions/watchonly/static/components/payment/payment.js @@ -10,7 +10,7 @@ async function payment(path) { data: function () { return { paymentTab: 'destination', - sendToList: [], + sendToList: [{address: '', amount: undefined}], changeWallet: null, changeAddress: {}, changeAmount: 0, diff --git a/lnbits/extensions/watchonly/static/components/send-to/send-to.js b/lnbits/extensions/watchonly/static/components/send-to/send-to.js index baf1cd2f..4712aa67 100644 --- a/lnbits/extensions/watchonly/static/components/send-to/send-to.js +++ b/lnbits/extensions/watchonly/static/components/send-to/send-to.js @@ -12,7 +12,7 @@ async function sendTo(path) { return this.data }, set: function (value) { - console.log('### computed update data') + console.log('### computed update data', value) this.$emit('update:data', value) } } @@ -64,7 +64,7 @@ async function sendTo(path) { }, created: async function () { - this.dataLocal = [{address: '', amount: undefined}] + } }) } diff --git a/lnbits/extensions/watchonly/templates/watchonly/index.html b/lnbits/extensions/watchonly/templates/watchonly/index.html index 94303a48..6f2d5d0f 100644 --- a/lnbits/extensions/watchonly/templates/watchonly/index.html +++ b/lnbits/extensions/watchonly/templates/watchonly/index.html @@ -73,7 +73,7 @@ - +