Skip to content

Commit

Permalink
remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
nkdengineer committed Sep 9, 2024
1 parent bd02423 commit 9faf989
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) && !shouldCreateNewMoneyRequestReport) {
const {optimisticData: fieldViolationsOptimisticData, failureData: fieldViolationsFailureData} = getFieldViolationsOnyxData(iouReport);
optimisticData.push(...fieldViolationsOptimisticData);
failureData.push(...fieldViolationsFailureData);
}

return [optimisticData, successData, failureData];
}

Expand Down

0 comments on commit 9faf989

Please sign in to comment.