diff --git a/src/libs/actions/IOU.ts b/src/libs/actions/IOU.ts index 40403eded27f..cb03f047e3d8 100644 --- a/src/libs/actions/IOU.ts +++ b/src/libs/actions/IOU.ts @@ -6813,13 +6813,12 @@ function replaceReceipt(transactionID: string, file: File, source: string) { }, }, ]; - const failureData: OnyxUpdate[] = [ { onyxMethod: Onyx.METHOD.MERGE, key: `${ONYXKEYS.COLLECTION.TRANSACTION}${transactionID}`, value: { - receipt: oldReceipt, + receipt: !isEmptyObject(oldReceipt) ? oldReceipt : null, filename: transaction?.filename, errors: getReceiptError(receiptOptimistic, file.name), },