 import NotificationCenter
 
 class JoinTeamViewController: TableViewController {
-  var selectedId: Int?
+  private let searchController = UISearchController(searchResultsController: nil)
+
+  var selectedId: Int? {
+    didSet {
+      navigationItem.rightBarButtonItem?.isEnabled = selectedId != nil
+    }
+  }
 
   override func commonInit() {
     super.commonInit()

  }

  func configure() {
    var teamCells: [JoinTeamCellContext] = teams.compactMap {
      guard
        let name = $0.name,
        let id = $0.id, // swiftlint:disable:this identifier_name


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

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