Skip to content

Commit ab9f313

Browse files
committed
Fix creation track build issue
1 parent 51514f2 commit ab9f313

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WooCommerce/Classes/ViewRelated/Coupons/Add and Edit Coupons/AddEditCouponViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ private extension AddEditCouponViewModel {
465465
"has_expiry_date": coupon.dateExpires != nil,
466466
"includes_free_shipping": coupon.freeShipping,
467467
"has_product_or_category_restrictions": coupon.excludedProductCategories.isNotEmpty || coupon.excludedProductIds.isNotEmpty,
468-
"has_usage_restrictions": coupon.usageLimit != nil && coupon.usageLimit > 0
468+
"has_usage_restrictions": (coupon.usageLimit ?? 0) > 0
469469
])
470470
}
471471

0 commit comments

Comments
 (0)