Fix race condition between accelerations and block audit api calls

This commit is contained in:
natsoni 2024-09-20 15:40:48 +02:00
parent 156bf12034
commit e41829d5e0
No known key found for this signature in database
GPG Key ID: C65917583181743B

View File

@ -327,7 +327,7 @@ export class BlockComponent implements OnInit, OnDestroy {
})
).subscribe((accelerations) => {
this.accelerations = accelerations;
if (accelerations.length) {
if (accelerations.length && this.strippedTransactions) { // Don't call setupBlockAudit if we don't have transactions yet; it will be called later in overviewSubscription
this.setupBlockAudit();
}
});