Skip to content

Commit

Permalink
Merge pull request #42409 from nkdengineer/fix/41527
Browse files Browse the repository at this point in the history
fix: Distance unit isn't updated immediately
  • Loading branch information
carlosmiceli authored Jun 7, 2024
2 parents 26cf7ac + 3547e7e commit 6709359
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libs/Network/SequentialQueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ function flush() {
Onyx.disconnect(connectionID);
process().finally(() => {
isSequentialQueueRunning = false;
resolveIsReadyPromise?.();
if (NetworkStore.isOffline() || PersistedRequests.getAll().length === 0) {
resolveIsReadyPromise?.();
}
currentRequest = null;
flushOnyxUpdatesQueue();
});
Expand Down

0 comments on commit 6709359

Please sign in to comment.