Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
GMALKHA committed Dec 3, 2024
1 parent 61b222a commit 9381efa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9381efa

Please sign in to comment.