Skip to content

Commit

Permalink
fix(GiniHealtSDK): Fix info bar appearance multiple times
Browse files Browse the repository at this point in the history
IPC-81
  • Loading branch information
razvancapra committed Mar 18, 2024
1 parent 2df0a32 commit 4d98b15
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public final class PaymentReviewViewController: UIViewController, UIGestureRecog
var model: PaymentReviewModel?
private var amountToPay = Price(value: 0, currencyCode: "")
private var lastValidatedIBAN = ""
private var showInfoBarOnce = true

private lazy var payInvoiceButton: PaymentPrimaryButton = {
let button = PaymentPrimaryButton()
Expand Down Expand Up @@ -89,7 +90,10 @@ public final class PaymentReviewViewController: UIViewController, UIGestureRecog

public override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
showInfoBar()
if showInfoBarOnce {
showInfoBar()
showInfoBarOnce = false
}
}

fileprivate func setupViewModel() {
Expand Down

0 comments on commit 4d98b15

Please sign in to comment.