Fix custom dashboard address graph

This commit is contained in:
Mononaut
2024-05-08 00:17:35 +00:00
parent 0fcd132df4
commit 9495d7d2ea
3 changed files with 10 additions and 6 deletions

View File

@@ -73,7 +73,7 @@ export class AddressGraphComponent implements OnChanges, OnDestroy {
if (!this.address || !this.stats) {
return;
}
if (changes.address || changes.isPubkey || changes.addressSummary$) {
if (changes.address || changes.isPubkey || changes.addressSummary$ || changes.stats) {
if (this.subscription) {
this.subscription.unsubscribe();
}
@@ -248,7 +248,9 @@ export class AddressGraphComponent implements OnChanges, OnDestroy {
}
ngOnDestroy(): void {
this.subscription.unsubscribe();
if (this.subscription) {
this.subscription.unsubscribe();
}
}
isMobile() {