From d910b92eafb244976c320892e02f6407ccd9f5ad Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Thu, 18 Jan 2024 12:14:57 +0800 Subject: [PATCH] prettier --- src/libs/actions/OnyxUpdates.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/libs/actions/OnyxUpdates.ts b/src/libs/actions/OnyxUpdates.ts index 25b4d85e7b88..cfb4735f0638 100644 --- a/src/libs/actions/OnyxUpdates.ts +++ b/src/libs/actions/OnyxUpdates.ts @@ -86,7 +86,12 @@ function apply({lastUpdateID, type, request, response, updates}: OnyxUpdatesFrom // In this case, we're already received the OnyxUpdate included in the response, so we don't need to apply it again. // However, we do need to apply the successData and failureData from the request - if (type === CONST.ONYX_UPDATE_TYPES.HTTPS && request && response && (!isEmptyObject(request.successData) || !isEmptyObject(request.failureData) || !isEmptyObject(request.finallyData))) { + if ( + type === CONST.ONYX_UPDATE_TYPES.HTTPS && + request && + response && + (!isEmptyObject(request.successData) || !isEmptyObject(request.failureData) || !isEmptyObject(request.finallyData)) + ) { Log.info('[OnyxUpdateManager] Applying success or failure data from request without onyxData from response'); // We use a spread here instead of delete because we don't want to change the response for other middlewares