Skip to content

Commit

Permalink
[PAY-1990] Fix Crash On Apple Pay Pledge Page (#1741)
Browse files Browse the repository at this point in the history
* checking availability of add new card button before its' update.

* Update project.pbxproj

Revert changes to .pbxproj

* Update project.pbxproj

Missed one reversion.
  • Loading branch information
msadoon committed Oct 4, 2022
1 parent 8af41af commit c7e235e
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 c7e235e

Please sign in to comment.