Skip to content

Commit 7f1b730

Browse files
committed
Do not show coupons in cart if coupons don't exist
1 parent 9f31a41 commit 7f1b730

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WooCommerce/Classes/POS/Presentation/CartView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ struct CartView: View {
1717
@State private var shouldShowItemImages: Bool = false
1818

1919
private var shouldShowCoupons: Bool {
20-
ServiceLocator.featureFlagService.isFeatureFlagEnabled(.enableCouponsInPointOfSale)
20+
ServiceLocator.featureFlagService.isFeatureFlagEnabled(.enableCouponsInPointOfSale) && posModel.cart.coupons.isNotEmpty
2121
}
2222

2323
var body: some View {

0 commit comments

Comments
 (0)