diff --git a/src/components/SchoolsLookUp/SchoolsLookUp.js b/src/components/SchoolsLookUp/SchoolsLookUp.js index a0593319..4194d86a 100644 --- a/src/components/SchoolsLookUp/SchoolsLookUp.js +++ b/src/components/SchoolsLookUp/SchoolsLookUp.js @@ -332,17 +332,22 @@ class SchoolsLookUp extends Component { const MenuHeader = props =>
  • ; return ( - - Please select a school from the list below - - { - results.map((result, index) => ( -
    - - {SchoolsLookUp.renderMenuItemChildren(result)} - -
    - )) + {results.length > 0 ? +
    + + Please select a school from the list below + + { + results.map((result, index) => ( +
    + + {SchoolsLookUp.renderMenuItemChildren(result)} + +
    + )) + } +
    : + null }
    ); @@ -384,17 +389,18 @@ class SchoolsLookUp extends Component { :
    - {/* Disable cashing as it ignores a lot of results */} + {/* Disable caching as it ignores a lot of results */} `${option.id !== 0 ? `${option.name} ${option.post_code}` : ''}`} - placeholder="Search" + placeholder="Type to start search (this may take a few seconds)" renderMenu={this.renderMenu} options={options} useCache={false}