Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ function MoneyRequestReportActionsList({
// Scan through each visible report action until we find the appropriate action to show the unread marker
for (let index = startIndex; index >= endIndex; index--) {
const reportAction = visibleReportActions.at(index);
const nextAction = visibleReportActions.at(index - 1);
const nextAction = index > 0 ? visibleReportActions.at(index - 1) : undefined;
const isEarliestReceivedOfflineMessage = index === earliestReceivedOfflineMessageIndex;

const shouldDisplayNewMarker =
Expand Down
Loading