diff --git a/src/hooks/useViolations.ts b/src/hooks/useViolations.ts index 5eb77f2d45e7..cc541eff1487 100644 --- a/src/hooks/useViolations.ts +++ b/src/hooks/useViolations.ts @@ -49,9 +49,6 @@ const violationFields: Record = { type ViolationsMap = Map; -// We don't want to show these violations on NewDot -const excludedViolationsName = ['taxAmountChanged', 'taxRateChanged']; - /** * @param violations – List of transaction violations * @param shouldShowOnlyViolations – Whether we should only show violations of type 'violation' @@ -59,9 +56,6 @@ const excludedViolationsName = ['taxAmountChanged', 'taxRateChanged']; function useViolations(violations: TransactionViolation[], shouldShowOnlyViolations: boolean) { const violationsByField = useMemo((): ViolationsMap => { const filteredViolations = violations.filter((violation) => { - if (excludedViolationsName.includes(violation.name)) { - return false; - } if (shouldShowOnlyViolations) { return violation.type === CONST.VIOLATION_TYPES.VIOLATION; }