Skip to content

Commit

Permalink
Update src/components/SelectionList/Search/TransactionListItemRow.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Gandalf <[email protected]>
  • Loading branch information
mountiny and allgandalf authored Dec 12, 2024
1 parent 36f2319 commit 4ad04e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ function TransactionListItemRow({
const theme = useTheme();

const isOnHold = useMemo(() => TransactionUtils.isOnHold(item), [item]);
const shouldDisableItemAction = useMemo(() => item.action === 'submit' && !ReportUtils.isAllowedToSubmitDraftExpenseReport(ReportUtils.getReport(item.reportID)), [item]);
const shouldDisableItemAction = useMemo(() => item.action === CONST.SEARCH.ACTION_TYPES.SUBMIT && !ReportUtils.isAllowedToSubmitDraftExpenseReport(ReportUtils.getReport(item.reportID)), [item]);

Check failure on line 270 in src/components/SelectionList/Search/TransactionListItemRow.tsx

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Replace `()·=>·item.action·===·CONST.SEARCH.ACTION_TYPES.SUBMIT·&&·!ReportUtils.isAllowedToSubmitDraftExpenseReport(ReportUtils.getReport(item.reportID)),·[item]` with `⏎········()·=>·item.action·===·CONST.SEARCH.ACTION_TYPES.SUBMIT·&&·!ReportUtils.isAllowedToSubmitDraftExpenseReport(ReportUtils.getReport(item.reportID)),⏎········[item],⏎····`

Check failure on line 270 in src/components/SelectionList/Search/TransactionListItemRow.tsx

View workflow job for this annotation

GitHub Actions / ESLint check

Replace `()·=>·item.action·===·CONST.SEARCH.ACTION_TYPES.SUBMIT·&&·!ReportUtils.isAllowedToSubmitDraftExpenseReport(ReportUtils.getReport(item.reportID)),·[item]` with `⏎········()·=>·item.action·===·CONST.SEARCH.ACTION_TYPES.SUBMIT·&&·!ReportUtils.isAllowedToSubmitDraftExpenseReport(ReportUtils.getReport(item.reportID)),⏎········[item],⏎····`

if (!isLargeScreenWidth) {
return (
Expand Down

0 comments on commit 4ad04e4

Please sign in to comment.