async fetchAuthoritiesList(filterByGPSHistory) {
    let authoritiesList = [];

    if (filterByGPSHistory) {
      authoritiesList = await HCAService.getAuthoritiesFromUserLocHistory();
    } else {
      authoritiesList = await HCAService.getAuthoritiesList();
    }

    this.setState({ authoritiesList });
  }
/**
   *
   * @param {boolean} filterByGPSHistory - used to filter the list of HCAs based on the
   * 28 day location history of the user
   * @returns void
   */
@param {boolean} filterByGPSHistory - used to filter the list of HCAs based on the
28 day location history of the user
@returns void
@param { boolean } filterByGPSHistory - used to filter the list of HCAs based on the 28 day location history of the user @returns void
async fetchAuthoritiesList(filterByGPSHistory) {
    let authoritiesList = [];
    if (filterByGPSHistory) {
      authoritiesList = await HCAService.getAuthoritiesFromUserLocHistory();
    } else {
      authoritiesList = await HCAService.getAuthoritiesList();
    }
    this.setState({ authoritiesList });
  }
async fetchAuthoritiesList ( filterByGPSHistory ) { let authoritiesList = [ ] ; if ( filterByGPSHistory ) { authoritiesList = await HCAService . getAuthoritiesFromUserLocHistory ( ) ; } else { authoritiesList = await HCAService . getAuthoritiesList ( ) ; } this . setState ( { authoritiesList } ) ; }
@param {boolean} filterByGPSHistory - used to filter the list of HCAs based on the
 28 day location history of the user
 @returns void
@param { boolean } filterByGPSHistory - used to filter the list of HCAs based on the 28 day location history of the user @returns void