diff --git a/src/myFaculty.js b/src/myFaculty.js index 4e11a30..44c39d6 100644 --- a/src/myFaculty.js +++ b/src/myFaculty.js @@ -58,14 +58,14 @@ export default class AutoCompletedText extends React.Component{ } render() { - const { text, suggestions } = this.state; - return( + const { text, suggestions, showProfile, selectedFaculty } = this.state; + return (

Search Your Faculty

- + {this.renderSuggestions()} - {this.state.showProfile ? :
} - Suggestions: {suggestions.length} + {showProfile ? :
} + {showProfile === true ? null : Suggestions: {suggestions.length}}
); }