Skip to content

Commit

Permalink
Merge branch 'main' into release-5.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
msadoon committed Oct 4, 2022
2 parents 1e8bd5c + c7e235e commit a5244b8
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -214,9 +214,9 @@ final class PledgePaymentMethodsViewController: UIViewController {
private func updateAddNewPaymentMethodButtonLoading(state: Bool) {
self.dataSource.updateAddNewPaymentCardLoad(state: state)

let addNewCardButtonSection = self.tableView.numberOfSections - 1

self.tableView.reloadSections([addNewCardButtonSection], with: .none)
if self.dataSource.numberOfItems(in: PaymentMethodsTableViewSection.addNewCard.rawValue) > 0 {
self.tableView.reloadSections([PaymentMethodsTableViewSection.addNewCard.rawValue], with: .none)
}
}
}

Expand Down

0 comments on commit a5244b8

Please sign in to comment.