Merge pull request #5880 from mempool/natsoni/reset-taptree

Reset taptree widget on address change
This commit is contained in:
softsimon 2025-04-15 23:10:16 +07:00 committed by GitHub
commit d4074b3a0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -164,6 +164,7 @@ export class AddressComponent implements OnInit, OnDestroy {
this.utxos = null;
this.addressInfo = null;
this.exampleChannel = null;
this.hasTapTree = false;
document.body.scrollTo(0, 0);
this.addressString = params.get('id') || '';
if (/^[A-Z]{2,5}1[AC-HJ-NP-Z02-9]{8,100}|04[a-fA-F0-9]{128}|(02|03)[a-fA-F0-9]{64}$/.test(this.addressString)) {