Skip to content

Commit

Permalink
fix: avoid typecastings
Browse files Browse the repository at this point in the history
  • Loading branch information
daledah committed Oct 7, 2024
1 parent f687155 commit 9e80633
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,8 @@ function Search({queryJSON, onSearchListScroll, contentContainerStyle}: SearchPr
onCheckboxPress={toggleTransaction}
onSelectAll={toggleAllTransactions}
isSelected={(item) =>
status !== CONST.SEARCH.STATUS.EXPENSE.ALL
? (item as ReportListItemType).transactions.some((transaction) => selectedTransactions[transaction.keyForList]?.isSelected)
status !== CONST.SEARCH.STATUS.EXPENSE.ALL && SearchUtils.isReportListItemType(item)
? item.transactions.some((transaction) => selectedTransactions[transaction.keyForList]?.isSelected)
: !!item.isSelected
}
customListHeader={
Expand Down

0 comments on commit 9e80633

Please sign in to comment.