Skip to content

Commit

Permalink
No results for invalid cases handled
Browse files Browse the repository at this point in the history
  • Loading branch information
Santhosh-Sellavel committed Oct 7, 2021
1 parent d328c55 commit 9d190f0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/pages/NewChatPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class NewChatPage extends Component {
render() {
const sections = this.getSections();
const headerMessage = getHeaderMessage(
this.state.personalDetails.length !== 0,
this.state.personalDetails.length + this.state.recentReports.length !== 0,
Boolean(this.state.userToInvite),
this.state.searchValue,
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class IOUParticipantsRequest extends Component {
render() {
const sections = this.getSections();
const headerMessage = getHeaderMessage(
this.state.personalDetails.length !== 0,
this.state.personalDetails.length + this.state.recentReports.length !== 0,
Boolean(this.state.userToInvite),
this.state.searchValue,
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ class IOUParticipantsSplit extends Component {
render() {
const maxParticipantsReached = this.props.participants.length === CONST.REPORT.MAXIMUM_PARTICIPANTS;
const sections = this.getSections(maxParticipantsReached);
const headerMessage = getHeaderMessage(
this.state.personalDetails.length !== 0,
const headerMessage = maxParticipantsReached ? '' : getHeaderMessage(
this.state.personalDetails.length + this.state.recentReports.length !== 0,
Boolean(this.state.userToInvite),
this.state.searchValue,
);
Expand Down

0 comments on commit 9d190f0

Please sign in to comment.