Crash sometimes when searching in Activity tab #2281

pull/2283/head
Vladyslav shepitko 4 years ago committed by Hwee-Boon Yar
parent f8f9a799c5
commit 962fee1eb0
  1. 12
      AlphaWallet/Activities/ViewControllers/ActivitiesViewController.swift

@ -298,16 +298,8 @@ extension ActivitiesViewController: UISearchResultsUpdating {
private func processSearchWithKeywords() {
let keyword = searchController.searchBar.text
DispatchQueue.global().async { [weak self] in
guard let strongSelf = self else { return }
strongSelf.viewModel.filter(.keyword(keyword))
DispatchQueue.main.async {
strongSelf.tableView.reloadData()
}
}
viewModel.filter(.keyword(keyword))
tableView.reloadData()
}
}

Loading…
Cancel
Save