Skip to content

Commit

Permalink
Merge pull request #48680 from nkdengineer/fix/47251
Browse files Browse the repository at this point in the history
fix: Error Not Triggered for Auto-Filled Report Field
  • Loading branch information
mountiny authored Sep 10, 2024
2 parents dad99dc + 9faf989 commit 7ef8148
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/libs/actions/IOU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -898,13 +898,6 @@ function buildOnyxDataForMoneyRequest(
});
}

// Show field violations only for control policies
if (PolicyUtils.isControlPolicy(policy)) {
const {optimisticData: fieldViolationsOptimisticData, failureData: fieldViolationsFailureData} = getFieldViolationsOnyxData(iouReport);
optimisticData.push(...fieldViolationsOptimisticData);
failureData.push(...fieldViolationsFailureData);
}

return [optimisticData, successData, failureData];
}

Expand Down

0 comments on commit 7ef8148

Please sign in to comment.