Skip to content

Commit c05c584

Browse files
committed
Fix cash payment success view having incorrect padding.
1 parent 11a0a9d commit c05c584

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

WooCommerce/Classes/POS/Presentation/TotalsView.swift

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -337,11 +337,18 @@ private extension TotalsView {
337337
return .primary
338338
}
339339
}
340-
case .cash:
341-
return PaymentViewLayout(backgroundColor: backgroundColor,
342-
topPadding: 0,
343-
bottomPadding: nil,
344-
sidePadding: 0)
340+
case .cash(let cashPaymentState):
341+
switch cashPaymentState {
342+
case .collectingCash:
343+
return PaymentViewLayout(backgroundColor: backgroundColor,
344+
topPadding: 0,
345+
bottomPadding: nil,
346+
sidePadding: 0)
347+
case .paymentSuccess:
348+
return PaymentViewLayout(backgroundColor: backgroundColor,
349+
topPadding: nil,
350+
bottomPadding: nil)
351+
}
345352
}
346353
}
347354
}

0 commit comments

Comments
 (0)