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

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

No files matched your search

@@ -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);
}
});