Skip to content

Commit

Permalink
fix finally data isn't applied
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed Jan 18, 2024
1 parent 4da7fda commit f26b7b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/OnyxUpdates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ 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))) {
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
Expand Down

0 comments on commit f26b7b3

Please sign in to comment.