Skip to content

Commit d184d26

Browse files
committed
cleanup
1 parent 9381efa commit d184d26

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Demo/Demo/PayPalWebPayments/PayPalWebViewModel/PayPalWebViewModel.swift

-4
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ class PayPalWebViewModel: ObservableObject {
5454
DispatchQueue.main.async {
5555
self.state.createdOrderResponse = .loaded(order)
5656
}
57-
// updateOrder(order)
58-
// updateState(.success)
5957
print("✅ fetched orderID: \(order.id) with status: \(order.status)")
6058
} catch {
6159
DispatchQueue.main.async {
@@ -132,7 +130,6 @@ class PayPalWebViewModel: ObservableObject {
132130
}
133131
}
134132
} else {
135-
// self.updateState(.success)
136133
DispatchQueue.main.async {
137134
self.state.createdOrderResponse = .loaded(Order(id: orderID, status: "COMPLETED"))
138135
self.checkoutResult = result
@@ -141,7 +138,6 @@ class PayPalWebViewModel: ObservableObject {
141138
}
142139
}
143140
}
144-
// updateState(.success)
145141
} catch {
146142
print("Error starting PayPalWebCheckoutClient")
147143
self.state.createdOrderResponse = .error(message: error.localizedDescription)

0 commit comments

Comments
 (0)