From 9381efaa5bad4fb42806901072d0eb583a075429 Mon Sep 17 00:00:00 2001 From: "Georgi Malkhasyan (CW)" Date: Tue, 3 Dec 2024 13:01:05 -0800 Subject: [PATCH] Refactoring --- .../PayPalWebPaymentsView/PayPalWebCreateOrderView.swift | 3 --- .../PayPalWebPaymentsView/PayPalWebResultView.swift | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Demo/Demo/PayPalWebPayments/PayPalWebPaymentsView/PayPalWebCreateOrderView.swift b/Demo/Demo/PayPalWebPayments/PayPalWebPaymentsView/PayPalWebCreateOrderView.swift index e5bffae2..821cdd6c 100644 --- a/Demo/Demo/PayPalWebPayments/PayPalWebPaymentsView/PayPalWebCreateOrderView.swift +++ b/Demo/Demo/PayPalWebPayments/PayPalWebPaymentsView/PayPalWebCreateOrderView.swift @@ -40,9 +40,6 @@ struct PayPalWebCreateOrderView: View { } } .buttonStyle(RoundedBlueButtonStyle()) -// if payPalWebViewModel.state == .loading && payPalWebViewModel.checkoutResult == nil && payPalWebViewModel.orderID == nil { -// CircularProgressView() -// } if case .loading = payPalWebViewModel.state.createdOrderResponse { CircularProgressView() } diff --git a/Demo/Demo/PayPalWebPayments/PayPalWebPaymentsView/PayPalWebResultView.swift b/Demo/Demo/PayPalWebPayments/PayPalWebPaymentsView/PayPalWebResultView.swift index 6f963476..578bc1f0 100644 --- a/Demo/Demo/PayPalWebPayments/PayPalWebPaymentsView/PayPalWebResultView.swift +++ b/Demo/Demo/PayPalWebPayments/PayPalWebPaymentsView/PayPalWebResultView.swift @@ -28,7 +28,7 @@ struct PayPalWebResultView: View { LabelViewText("Status:", bodyText: createOrderResponse.status) if let payerID = payPalWebViewModel.checkoutResult?.payerID { - LabelViewText("Payer ID:", bodyText: createOrderResponse.status) + LabelViewText("Payer ID:", bodyText: payerID) } if let emailAddress = createOrderResponse.paymentSource?.paypal?.emailAddress {