Skip to content

Commit 32a24aa

Browse files
committed
Fix crash when sending coupon create initiated track
1 parent 790bb10 commit 32a24aa

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
@@ -462,7 +462,7 @@ private extension AddEditCouponViewModel {
462462

463463
func trackCouponCreateInitiated(with coupon: Coupon) {
464464
ServiceLocator.analytics.track(.couponCreationInitiated, withProperties: [
465-
"discount_type": coupon.discountType,
465+
"discount_type": coupon.discountType.rawValue,
466466
"has_expiry_date": coupon.dateExpires != nil,
467467
"includes_free_shipping": coupon.freeShipping,
468468
"has_product_or_category_restrictions": coupon.excludedProductCategories.isNotEmpty || coupon.excludedProductIds.isNotEmpty,

0 commit comments

Comments
 (0)