From 52b5426fba7f0db7dcee85386522a26bacac6bc0 Mon Sep 17 00:00:00 2001 From: nkdengineer Date: Tue, 21 Oct 2025 15:24:23 +0700 Subject: [PATCH] fix: card expense splits appear as cash expense --- src/libs/actions/IOU.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/actions/IOU.ts b/src/libs/actions/IOU.ts index 1b8b06841dda..e176726e9333 100644 --- a/src/libs/actions/IOU.ts +++ b/src/libs/actions/IOU.ts @@ -3528,7 +3528,7 @@ function getMoneyRequestInformation(moneyRequestInformation: MoneyRequestInforma // data. This is a big can of worms to change it to `Onyx.merge()` as explored in https://expensify.slack.com/archives/C05DWUDHVK7/p1692139468252109. // I want to clean this up at some point, but it's possible this will live in the code for a while so I've created https://github.com/Expensify/App/issues/25417 // to remind me to do this. - if (isDistanceRequest) { + if ((!!isSplitExpense || isDistanceRequest) && existingTransaction) { optimisticTransaction = fastMerge(existingTransaction, optimisticTransaction, false); }