Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/analytics/impact.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export async function trackPaymentConversion(): Promise<void> {
const anonymousID = getCookie('impactAnonymousId') || uuidV4();
const source = getCookie('impactSource');

const IMPACT_COUPON_WHITELIST = ['CNINTERNXT', 'CNINTERNXTL', 'CLOUDOFF', 'SPECIAL', 'ANTIV', 'SAVE', 'OFFER', 'GOTZHAOFFER', 'TFA','REOFFER'];
const IMPACT_COUPON_WHITELIST = ['CNINTERNXT', 'CNINTERNXTL', 'CLOUDOFF', 'SPECIAL', 'ANTIV', 'SAVE', 'OFFER', 'GOTZHAOFFER', 'TFA', 'REOFFER', 'WEWE'];
const isImpactCoupon = couponCode && IMPACT_COUPON_WHITELIST.includes(couponCode.toUpperCase());

if (isFirstPurchase && ((source && source !== 'direct') || isImpactCoupon)) {
Expand Down
2 changes: 1 addition & 1 deletion src/views/Checkout/components/CheckoutProductCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const CheckoutProductCard = ({
const derivedTax = Math.max(0, Number(totalAmountFormatted) - Number(planAmountWithoutTaxes));
const derivedTaxFormatted = formatPrice(derivedTax);

const HIDDEN_COUPON_CODES = ['SPECIAL', 'ANTIV', 'SAVE', 'OFFER', 'CIPIAIDISCOUNT','THEFELLASADSOFFER', 'GOTZHAOFFER', 'TFA','REOFFER'];
const HIDDEN_COUPON_CODES = ['SPECIAL', 'ANTIV', 'SAVE', 'OFFER', 'CIPIAIDISCOUNT','THEFELLASADSOFFER', 'GOTZHAOFFER', 'TFA','REOFFER', 'WEWE'];
const isHiddenCoupon = HIDDEN_COUPON_CODES.includes(couponCodeData?.codeName ?? '');

const discountPercentage =
Expand Down
Loading