From e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b Mon Sep 17 00:00:00 2001 From: Vijay A Date: Wed, 24 May 2023 06:57:50 +0530 Subject: Upgrade npm modules --- src/stores/AppStore.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/stores/AppStore.ts') diff --git a/src/stores/AppStore.ts b/src/stores/AppStore.ts index 02d616241..18b38799e 100644 --- a/src/stores/AppStore.ts +++ b/src/stores/AppStore.ts @@ -529,14 +529,14 @@ export default class AppStore extends TypedStore { // Reactions _offlineCheck() { - if (!this.isOnline) { - this.timeOfflineStart = moment(); - } else { + if (this.isOnline) { const deltaTime = moment().diff(this.timeOfflineStart); if (deltaTime > ms('30m')) { this.actions.service.reloadAll(); } + } else { + this.timeOfflineStart = moment(); } } -- cgit v1.2.3-54-g00ecf