We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a6ccb39 + f8757ba commit 74c2249Copy full SHA for 74c2249
1 file changed
src/components/MoneyRequestReportView/MoneyRequestReportActionsList.tsx
@@ -326,7 +326,7 @@ function MoneyRequestReportActionsList({
326
// Scan through each visible report action until we find the appropriate action to show the unread marker
327
for (let index = startIndex; index >= endIndex; index--) {
328
const reportAction = visibleReportActions.at(index);
329
- const nextAction = visibleReportActions.at(index - 1);
+ const nextAction = index > 0 ? visibleReportActions.at(index - 1) : undefined;
330
const isEarliestReceivedOfflineMessage = index === earliestReceivedOfflineMessageIndex;
331
332
const shouldDisplayNewMarker =
0 commit comments