Skip to content

Commit c44cb3a

Browse files
committed
fix prettier
1 parent 5758532 commit c44cb3a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/libs/OptionsListUtils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,10 +876,11 @@ function getLastMessageTextForReport(report: OnyxEntry<Report>, lastActorDetails
876876
lastMessageTextFromReport = getReportActionMessageText(lastReportAction);
877877
}
878878
}
879-
879+
880880
// If the last action is AddComment and no last message text was determined yet, use getLastVisibleMessage to get the preview text
881881
if (reportID && !lastMessageTextFromReport && isAddCommentAction(lastReportAction)) {
882882
lastMessageTextFromReport = lastVisibleMessage?.lastMessageText;
883+
}
883884

884885
return lastMessageTextFromReport || (report?.lastMessageText ?? '');
885886
}

0 commit comments

Comments
 (0)