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 25432d4 commit 0b26575Copy full SHA for 0b26575
WooCommerce/Classes/ViewRelated/Coupons/Add and Edit Coupons/AddEditCoupon.swift
@@ -306,6 +306,9 @@ struct AddEditCoupon: View {
306
}
307
.sheet(isPresented: $viewModel.showingCouponCreationSuccess) {
308
let couponCode = viewModel.coupon?.code ?? ""
309
+ if couponCode.isEmpty {
310
+ let _ = DDLogError("⛔️ Error acquiring the coupon code after creation")
311
+ }
312
CouponCreationSuccess(couponCode: couponCode, shareMessage: viewModel.shareCouponMessage) {
313
onDisappear()
314
0 commit comments