Skip to content

Commit

Permalink
Merge pull request #31340 from DylanDylann/fix/30290
Browse files Browse the repository at this point in the history
Fix: using SET method to save updated transaction
  • Loading branch information
neil-marcellini authored Nov 30, 2023
2 parents 0d67081 + 88ebfd8 commit 2b9de34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libs/actions/IOU.js
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,8 @@ function editDistanceMoneyRequest(transactionID, transactionThreadReportID, tran

// 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,
Expand Down

0 comments on commit 2b9de34

Please sign in to comment.