Skip to content

Commit

Permalink
Fix a minor bug that always shows address as used (#927)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jleo84 committed Feb 1, 2021
1 parent d98cb03 commit f47eead
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -35,7 +35,7 @@ <h1>Address details</h1><br>
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');
Expand Down

0 comments on commit f47eead

Please sign in to comment.