Skip to content

Commit

Permalink
Use SET instead
Browse files Browse the repository at this point in the history
Avoid mixing SET and MERGE for the same key
  • Loading branch information
lindboe committed Dec 19, 2023
1 parent e5b607e commit a8741ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/IOU.js
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ function buildOnyxDataForMoneyRequest(
if (violationsOnyxData) {
optimisticData.push(violationsOnyxData);
failureData.push({
onyxMethod: Onyx.METHOD.MERGE,
onyxMethod: Onyx.METHOD.SET,
key: `${ONYXKEYS.COLLECTION.TRANSACTION_VIOLATIONS}${transaction.transactionID}`,
value: [],
});
Expand Down

0 comments on commit a8741ab

Please sign in to comment.