diff --git a/src/libs/actions/IOU.js b/src/libs/actions/IOU.js index aa07f0e7ca34..a14358fc0582 100644 --- a/src/libs/actions/IOU.js +++ b/src/libs/actions/IOU.js @@ -765,7 +765,8 @@ function updateDistanceRequest(transactionID, transactionThreadReportID, transac // Optimistically modify the transaction optimisticData.push({ - onyxMethod: Onyx.METHOD.MERGE, + // We need to use SET method to save updated waypoint instead MERGE method to avoid wrong update of waypoints. More detail: https://github.com/Expensify/App/issues/30290#issuecomment-1778957070 + onyxMethod: Onyx.METHOD.SET, key: `${ONYXKEYS.COLLECTION.TRANSACTION}${transactionID}`, value: { ...updatedTransaction,