Skip to content

Commit

Permalink
πŸ› Reload list fix
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-sarda committed May 11, 2021
1 parent daf1f34 commit 48e2279
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ final class FollowedCentresViewModel: CentresListViewModel {
}

override func reloadTableView(animated: Bool) {
super.reloadTableView(animated: animated)

let shouldDismiss = vaccinationCentresList.isEmpty && followedCentresIds.isEmpty
if shouldDismiss {
delegate?.dismissViewController()
return
}

super.reloadTableView(animated: animated)
}

override internal func createHeadingCells(appointmentsCount: Int, availableCentresCount: Int, centresCount: Int) -> [CentresListCell] {
Expand Down

0 comments on commit 48e2279

Please sign in to comment.