Skip to content

Commit 357bdaf

Browse files
committed
Use transactionCount for accurate expense count on narrow layout
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
1 parent b735261 commit 357bdaf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/Search/SearchList/ListItem/ExpenseReportListItemRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ function ExpenseReportListItemRow({
236236
theme.highlightBG;
237237

238238
if (!isLargeScreenWidth) {
239-
const expenseCount = item.transactions?.length ?? 0;
239+
const expenseCount = item.transactionCount ?? item.transactions?.length ?? 0;
240240
const expenseCountText = translate('iou.expenseCount', {count: expenseCount});
241241
const formattedDate = DateUtils.formatWithUTCTimeZone(
242242
item.created ?? '',

0 commit comments

Comments
 (0)