File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,10 @@ open class WalletManager: UIViewController {
126126 RCTPresentedViewController ( ) ? . present ( enrollViewController, animated: true , completion: nil )
127127 } else {
128128 self . logInfo ( message: " EnrollViewController is already presented. " )
129+ self . presentAddPaymentPassCompletionHandler = nil
130+ completion ( . error, [
131+ " errorMessage " : " EnrollViewController is already presented. "
132+ ] )
129133 }
130134 }
131135 }
@@ -165,7 +169,7 @@ open class WalletManager: UIViewController {
165169 let paymentPasses = passLibrary. passes ( of: . payment)
166170 if paymentPasses. isEmpty {
167171 self . logInfo ( message: " No passes found in Wallet. " )
168- return - 1
172+ return NSNumber ( value : - 1 )
169173 }
170174
171175 for pass in paymentPasses {
@@ -174,7 +178,7 @@ open class WalletManager: UIViewController {
174178 return NSNumber ( value: securePassElement. passActivationState. rawValue)
175179 }
176180 }
177- return - 1
181+ return NSNumber ( value : - 1 )
178182 }
179183
180184 @objc public func getCardStatusBySuffix( last4Digits: NSString ) -> NSNumber {
You can’t perform that action at this time.
0 commit comments