Skip to content

Commit

Permalink
Merge pull request #44231 from truph01/fix/43767
Browse files Browse the repository at this point in the history
Fix: Category no longer valid shows up
  • Loading branch information
deetergp authored Jun 25, 2024
2 parents a6ba6ce + 0f53cd5 commit 6f22937
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/IOU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2714,7 +2714,7 @@ function getUpdateMoneyRequestParams(
});
}

if (policy && PolicyUtils.isPaidGroupPolicy(policy) && updatedTransaction) {
if (policy && PolicyUtils.isPaidGroupPolicy(policy) && updatedTransaction && ('tag' in transactionChanges || 'category' in transactionChanges)) {
const currentTransactionViolations = allTransactionViolations[`${ONYXKEYS.COLLECTION.TRANSACTION_VIOLATIONS}${transactionID}`] ?? [];
optimisticData.push(
ViolationsUtils.getViolationsOnyxData(
Expand Down

0 comments on commit 6f22937

Please sign in to comment.