Skip to content

Commit

Permalink
Do not display the marker at the top of the report
Browse files Browse the repository at this point in the history
  • Loading branch information
Gonals committed May 5, 2021
1 parent db16757 commit b098d1c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/home/report/ReportActionsView.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ class ReportActionsView extends React.Component {

// We are adding 1 to the last read sequence number because we want the New marker displayed over the
// first unread sequence
setNewMarkerPosition(this.props.reportID, lastReadSequenceNumber + 1);
if (lastReadSequenceNumber > 0) {
setNewMarkerPosition(this.props.reportID, lastReadSequenceNumber + 1);
}
fetchActions(this.props.reportID);
Timing.end(CONST.TIMING.SWITCH_REPORT, CONST.TIMING.COLD);
}
Expand Down

0 comments on commit b098d1c

Please sign in to comment.