From f47eead80c281baba317c81f2e3afa9b819ef38a Mon Sep 17 00:00:00 2001 From: jleo84 <70302531+jleo84@users.noreply.github.com> Date: Mon, 1 Feb 2021 05:57:47 -0300 Subject: [PATCH] Fix a minor bug that always shows address as used (#927) In the line 39 of this file, the variable this.used is set as string. So the conditional in line 85 always returns true and so, any address will be shown as used. --- src/cryptoadvance/specter/templates/includes/address-data.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cryptoadvance/specter/templates/includes/address-data.html b/src/cryptoadvance/specter/templates/includes/address-data.html index f699d38efd..7cdf992ad4 100644 --- a/src/cryptoadvance/specter/templates/includes/address-data.html +++ b/src/cryptoadvance/specter/templates/includes/address-data.html @@ -35,7 +35,7 @@

Address details


this.info = clone.querySelector(".address-data-info"); this.isVerifyQR = this.getAttribute('data-verify-qr') == 'True'; this.isVerifyHwi = this.getAttribute('data-verify-hwi') == 'True'; - this.used = this.getAttribute('data-used'); + this.used = (this.getAttribute('data-used') == 'true'); this.utxo = this.getAttribute('data-utxo'); this.amount = this.getAttribute('data-amount'); this.amountPrice = this.getAttribute('data-amount-price');