From 4de5d05a6a13673efc482138313a1b83dc2f8726 Mon Sep 17 00:00:00 2001 From: Okhan Okbay Date: Wed, 27 Mar 2024 14:55:58 +0000 Subject: [PATCH] Fix HTTP 422 custom error handling --- Sources/CheckoutNetwork/CheckoutNetworkClient.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/CheckoutNetwork/CheckoutNetworkClient.swift b/Sources/CheckoutNetwork/CheckoutNetworkClient.swift index 0989db8..5f443be 100644 --- a/Sources/CheckoutNetwork/CheckoutNetworkClient.swift +++ b/Sources/CheckoutNetwork/CheckoutNetworkClient.swift @@ -70,7 +70,7 @@ public class CheckoutNetworkClient: CheckoutClientInterface { completionHandler(error) return } - if let responseError = self.getErrorFromResponse(response, data: nil) { + if let responseError = self.getErrorFromResponse(response, data: data) { completionHandler(responseError) return }