Omit category title if single AND unnamed

This commit is contained in:
Davide De Rosa 2019-11-21 15:27:06 +01:00
parent 05697b12cc
commit 7865f6a697
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ extension ProviderPoolViewController: UITableViewDataSource, UITableViewDelegate
}
func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
guard categories.count > 1 else {
if categories.count == 1 && categories.first?.name == "" {
return nil
}
let model = categories[section]