From c76644c561909ba4b31259502e319fced53a6634 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Tue, 26 Jul 2022 11:08:10 +0300 Subject: [PATCH] fix: init `sendToList` --- .../extensions/watchonly/static/components/payment/payment.js | 2 +- .../extensions/watchonly/static/components/send-to/send-to.js | 4 ++-- lnbits/extensions/watchonly/templates/watchonly/index.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lnbits/extensions/watchonly/static/components/payment/payment.js b/lnbits/extensions/watchonly/static/components/payment/payment.js index a2be844bf..386e882ba 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 baf1cd2f4..4712aa673 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 94303a484..6f2d5d0f9 100644 --- a/lnbits/extensions/watchonly/templates/watchonly/index.html +++ b/lnbits/extensions/watchonly/templates/watchonly/index.html @@ -73,7 +73,7 @@ - +