Skip to content

Commit

Permalink
Improve sync state checking flow during scheduled sync
Browse files Browse the repository at this point in the history
  • Loading branch information
alexstotsky committed Jul 22, 2024
1 parent 92803ba commit 7f4415a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/state/sync/saga.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit 7f4415a

Please sign in to comment.