diff --git a/src/pages/home/report/ReportActionsList.tsx b/src/pages/home/report/ReportActionsList.tsx index b74745494272..6828e10e7e3b 100644 --- a/src/pages/home/report/ReportActionsList.tsx +++ b/src/pages/home/report/ReportActionsList.tsx @@ -278,7 +278,7 @@ function ReportActionsList({ } const mostRecentReportActionCreated = sortedVisibleReportActions[0]?.created ?? ''; - if (mostRecentReportActionCreated <= unreadMarkerTime) { + if (mostRecentReportActionCreated === unreadMarkerTime) { return; } diff --git a/tests/perf-test/ReportActionsList.perf-test.tsx b/tests/perf-test/ReportActionsList.perf-test.tsx index f0fef9a8e574..9bfe223dd925 100644 --- a/tests/perf-test/ReportActionsList.perf-test.tsx +++ b/tests/perf-test/ReportActionsList.perf-test.tsx @@ -82,6 +82,14 @@ beforeEach(() => { }); function ReportActionsListWrapper() { + const reportActions = ReportTestUtils.getMockedSortedReportActions(500); + const lastVisibleActionCreated = reportActions[0].created; + const report = { + ...LHNTestUtilsModule.getFakeReport(), + lastVisibleActionCreated, + lastReadTime: lastVisibleActionCreated, + }; + return ( @@ -89,8 +97,8 @@ function ReportActionsListWrapper() { {}} @@ -98,7 +106,7 @@ function ReportActionsListWrapper() { loadOlderChats={mockLoadChats} loadNewerChats={mockLoadChats} transactionThreadReport={LHNTestUtilsModule.getFakeReport()} - reportActions={ReportTestUtils.getMockedSortedReportActions(500)} + reportActions={reportActions} />