Skip to content

Commit 4c92e5b

Browse files
committed
fix first transaction is highlighted when deleting a transaction
1 parent 64ff87f commit 4c92e5b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/MoneyRequestReportView/MoneyRequestReportTransactionList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ function MoneyRequestReportTransactionList({report, transactions, reportActions,
130130
const {sortBy, sortOrder} = sortConfig;
131131

132132
const newTransactionID = useMemo(() => {
133-
if (!prevTransactions || transactions.length === prevTransactions.length) {
133+
if (!prevTransactions || transactions.length <= prevTransactions.length) {
134134
return CONST.EMPTY_ARRAY as unknown as string[];
135135
}
136136

0 commit comments

Comments
 (0)