   }
 
   func configure() {
-    var teamCells: [JoinTeamCellContext] = teams.compactMap {
+    var teamCells: [JoinTeamCellContext] = teams
+      .filter {
+        guard let filter = self.filter else { return true }
+        return $0.name?.lowercased().contains(filter.lowercased()) ?? true
+      }
+      .compactMap {
       guard
         let name = $0.name,
         let id = $0.id, // swiftlint:disable:this identifier_name


  private var teams: [Team] = []
  private var event: Event?

  func reload(completion: @escaping () -> Void) {
    AKFCausesService.getParticipant(fbid: Facebook.id) { [weak self] (result) in

      style: .plain,
      target: self, action: #selector(joinTapped))
    navigationItem.rightBarButtonItem?.isEnabled = false
    configureSearchController()
  }

  private func configureSearchController() {
    searchController.searchResultsUpdater = self
    searchController.dimsBackgroundDuringPresentation = false
    searchController.hidesNavigationBarDuringPresentation = false
    navigationItem.hidesSearchBarWhenScrolling = false
    navigationItem.searchController = searchController
  }

  override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
