From 48ab496cb47259d66427a739bded3afb92b4d2b8 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Thu, 4 Aug 2022 11:05:27 +0300 Subject: [PATCH] fix: address type selection --- .../components/wallet-list/wallet-list.html | 1 - .../components/wallet-list/wallet-list.js | 24 +++++++++++-------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/lnbits/extensions/watchonly/static/components/wallet-list/wallet-list.html b/lnbits/extensions/watchonly/static/components/wallet-list/wallet-list.html index ccd6f678..3472a52f 100644 --- a/lnbits/extensions/watchonly/static/components/wallet-list/wallet-list.html +++ b/lnbits/extensions/watchonly/static/components/wallet-list/wallet-list.html @@ -191,7 +191,6 @@ label="Account Extended Public Key; xpub, ypub, zpub; Bitcoin Descriptor" > t.value === value) || {} + this.addressTypeOptions.find(t => t.id === value.id) || {} this.accountPath = addressType[`path${this.network}`] } }, created: async function () { if (this.inkey) { await this.refreshWalletAccounts() - this.handleAddressTypeChanged('wpkh') + this.handleAddressTypeChanged(this.addressTypeOptions[1]) } } })