Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
yuwenmemon committed Dec 15, 2022
1 parent b0571a7 commit 2ac451f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pages/home/report/ReportActionsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ class ReportActionsList extends React.Component {
);
}

// Make sure the oldest report action loaded is not the first. This is so we do not show the
// skeleton view above the created action in a newly generated optimistic chat or one with not
// that many comments.
const lastReportAction = _.last(this.props.sortedReportActions);
if (this.props.report.isLoadingReportActions && lastReportAction.sequenceNumber > 0) {
return (
Expand Down

0 comments on commit 2ac451f

Please sign in to comment.