diff --git a/src/libs/actions/OnyxUpdates.ts b/src/libs/actions/OnyxUpdates.ts index 91cdde6a7c641..73c8b3d592bf9 100644 --- a/src/libs/actions/OnyxUpdates.ts +++ b/src/libs/actions/OnyxUpdates.ts @@ -163,10 +163,15 @@ function doesClientNeedToBeUpdated(previousUpdateID = 0, clientLastUpdateID = 0) // If we don't have any value in lastUpdateIDFromClient, this is the first time we're receiving anything, so we need to do a last reconnectApp if (!lastUpdateIDFromClient) { + Log.info('We do not have lastUpdateIDFromClient, client needs updating'); + return true; + } + if (lastUpdateIDFromClient < previousUpdateID) { + Log.info('lastUpdateIDFromClient is less than the previousUpdateID received, client needs updating', false, {lastUpdateIDFromClient, previousUpdateID}); return true; } - return lastUpdateIDFromClient < previousUpdateID; + return false; } // eslint-disable-next-line import/prefer-default-export