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 51514f2 commit ab9f313Copy full SHA for ab9f313
WooCommerce/Classes/ViewRelated/Coupons/Add and Edit Coupons/AddEditCouponViewModel.swift
@@ -465,7 +465,7 @@ private extension AddEditCouponViewModel {
465
"has_expiry_date": coupon.dateExpires != nil,
466
"includes_free_shipping": coupon.freeShipping,
467
"has_product_or_category_restrictions": coupon.excludedProductCategories.isNotEmpty || coupon.excludedProductIds.isNotEmpty,
468
- "has_usage_restrictions": coupon.usageLimit != nil && coupon.usageLimit > 0
+ "has_usage_restrictions": (coupon.usageLimit ?? 0) > 0
469
])
470
}
471
0 commit comments