diff --git a/src/pages/SearchPage.js b/src/pages/SearchPage.js index 30c3b7b3aafd..0fc9b845ebee 100755 --- a/src/pages/SearchPage.js +++ b/src/pages/SearchPage.js @@ -90,18 +90,22 @@ class SearchPage extends Component { * @returns {Array} */ getSections() { - const sections = [ - { + const sections = []; + if (this.state.recentReports.length > 0) { + sections.push(({ data: this.state.recentReports, shouldShow: true, indexOffset: 0, - }, - { + })); + } + + if (this.state.personalDetails.length > 0) { + sections.push(({ data: this.state.personalDetails, shouldShow: true, indexOffset: this.state.recentReports.length, - }, - ]; + })); + } if (this.state.userToInvite) { sections.push(({