Adding a third connection state and preventing offline indicator from pushing the menu.

This commit is contained in:
softsimon
2020-03-09 17:53:54 +07:00
parent 91179c8d25
commit a3e52deb72
7 changed files with 40 additions and 17 deletions

View File

@@ -97,9 +97,9 @@ export class AddressComponent implements OnInit, OnDestroy {
this.loadedConfirmedTxCount++;
});
this.stateService.isOffline$
this.stateService.connectionState$
.subscribe((state) => {
if (!state && this.transactions && this.transactions.length) {
if (state === 2 && this.transactions && this.transactions.length) {
this.loadAddress(this.addressString);
}
});