Skip to content

Commit

Permalink
Fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-vysotskyi-cko committed Oct 10, 2024
1 parent cb24172 commit 2fbd56e
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,7 @@ final class DynamicCheckoutDefaultInteractor:
}
guard let transaction = newInvoice.transaction, transaction.status == .waiting else {
// Another restart is not attempted to prevent potential recursion
let failure = POFailure(
message: "Unsupported invoice state: \(transaction.status).", code: .generic(.mobile)
)
let failure = POFailure(message: "Unsupported invoice state.", code: .generic(.mobile))
setFailureState(error: failure)
return
}
Expand Down Expand Up @@ -664,7 +662,7 @@ extension DynamicCheckoutDefaultInteractor: POCardTokenizationDelegate {
invalidateInvoiceIfPossible()
guard case .paymentProcessing(let currentState) = state else {
logger.error("Unable to process card in unsupported state: \(state).")
throw POFailure(message: "Something went wrong." code: .internal(.mobile))
throw POFailure(message: "Something went wrong.", code: .internal(.mobile))
}
try await authorizeInvoice(source: card.id, saveSource: save, startedState: currentState.snapshot)
}
Expand Down

0 comments on commit 2fbd56e

Please sign in to comment.