From 7f4415a99429e8bf5d936eda62ff86435f310e6f Mon Sep 17 00:00:00 2001 From: alexstotsky Date: Mon, 22 Jul 2024 11:34:48 +0300 Subject: [PATCH] Improve sync state checking flow during scheduled sync --- src/state/sync/saga.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/state/sync/saga.js b/src/state/sync/saga.js index 83a4ca108..e2e024ca6 100644 --- a/src/state/sync/saga.js +++ b/src/state/sync/saga.js @@ -211,9 +211,11 @@ function* progressUpdate({ payload }) { yield put(actions.setIsSyncing(false)) yield put(actions.showInitSyncPopup(false)) } else { + const isSyncing = yield select(getIsSyncing) const syncProgress = Number.isInteger(progress) ? progress : 0 + if (isSyncInProgress && !isSyncing) yield put(actions.setIsSyncing(true)) yield put(actions.setSyncProgress(syncProgress)) yield put(actions.setEstimatedTime(estimatedTimeValues)) }