Skip to content

Commit

Permalink
feat(Violations): remove unnecessary cast
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-coleman committed Dec 12, 2023
1 parent 7ec9098 commit 84f83fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ReportActionItem/MoneyRequestView.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function MoneyRequestView({report, parentReport, parentReportActions, policyCate
const shouldShowBillable = isPolicyExpenseChat && (transactionBillable || !lodashGet(policy, 'disabledFields.defaultBillable', true));

const {getViolationsForField} = useViolations(transactionViolations);
const hasViolations = useCallback((field) => canUseViolations && Boolean(getViolationsForField(field).length > 0), [canUseViolations, getViolationsForField]);
const hasViolations = useCallback((field) => canUseViolations && getViolationsForField(field).length > 0, [canUseViolations, getViolationsForField]);

let amountDescription = `${translate('iou.amount')}`;

Expand Down

0 comments on commit 84f83fc

Please sign in to comment.