We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11a0a9d commit c05c584Copy full SHA for c05c584
WooCommerce/Classes/POS/Presentation/TotalsView.swift
@@ -337,11 +337,18 @@ private extension TotalsView {
337
return .primary
338
}
339
340
- case .cash:
341
- return PaymentViewLayout(backgroundColor: backgroundColor,
342
- topPadding: 0,
343
- bottomPadding: nil,
344
- sidePadding: 0)
+ case .cash(let cashPaymentState):
+ switch cashPaymentState {
+ case .collectingCash:
+ return PaymentViewLayout(backgroundColor: backgroundColor,
+ topPadding: 0,
345
+ bottomPadding: nil,
346
+ sidePadding: 0)
347
+ case .paymentSuccess:
348
349
+ topPadding: nil,
350
+ bottomPadding: nil)
351
+ }
352
353
354
0 commit comments