Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
NQuinn27 committed Nov 19, 2024
1 parent a5a239b commit 2973e61
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Sources/PrimerSDK/Classes/User Interface/PrimerUIManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,12 @@ internal class PrimerUIManager: PrimerUIManaging {
let paymentMethodTokenizationViewModel = PrimerAPIConfiguration.paymentMethodConfigViewModels.filter({ $0.config.type == type }).first

guard let paymentMethodTokenizationViewModel else {
let error = PrimerError.unableToPresentPaymentMethod(paymentMethodType: type,
userInfo: .errorUserInfoDictionary(
additionalInfo: ["message": "paymentMethodTokenizationViewModel was not present when calling presentPaymentMethod",]
),
diagnosticsId: UUID().uuidString)
let error = PrimerError.unableToPresentPaymentMethod(
paymentMethodType: type,
userInfo: .errorUserInfoDictionary(
additionalInfo: ["message": "paymentMethodTokenizationViewModel was not present when calling presentPaymentMethod"]
),
diagnosticsId: UUID().uuidString)
ErrorHandler.handle(error: error)
return
}
Expand Down

0 comments on commit 2973e61

Please sign in to comment.