From 0a5c61acb2d2defd34d5ac0d2098fd7fad0feb6e Mon Sep 17 00:00:00 2001 From: Sodbileg Gansukh Date: Tue, 12 Dec 2023 22:37:50 +0700 Subject: [PATCH] Removed linking when there's no redemptions (#19332) fixes PROD-250 --- apps/admin-x-settings/src/components/settings/growth/Offers.tsx | 2 +- .../src/components/settings/growth/offers/OffersIndex.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/admin-x-settings/src/components/settings/growth/Offers.tsx b/apps/admin-x-settings/src/components/settings/growth/Offers.tsx index 63501484b5..4ac3765293 100644 --- a/apps/admin-x-settings/src/components/settings/growth/Offers.tsx +++ b/apps/admin-x-settings/src/components/settings/growth/Offers.tsx @@ -20,7 +20,7 @@ const OfferContainer: React.FC<{offerTitle: string, tier: Tier, cadence: string, {cadence === 'month' ? 'monthly' : 'yearly'}
- {redemptions} redemptions + {redemptions} redemptions
diff --git a/apps/admin-x-settings/src/components/settings/growth/offers/OffersIndex.tsx b/apps/admin-x-settings/src/components/settings/growth/offers/OffersIndex.tsx index aacd370642..d90d1b990c 100644 --- a/apps/admin-x-settings/src/components/settings/growth/offers/OffersIndex.tsx +++ b/apps/admin-x-settings/src/components/settings/growth/offers/OffersIndex.tsx @@ -178,7 +178,7 @@ export const OffersIndexModal = () => { handleOfferEdit(offer?.id ? offer.id : '') : () => {}}>{offerTier.name} {getOfferCadence(offer.cadence)} handleOfferEdit(offer?.id ? offer.id : '') : () => {}}>{discountOffer} — {getOfferDuration(offer.duration)} handleOfferEdit(offer?.id ? offer.id : '') : () => {}}>{updatedPriceWithCurrency} {originalPriceWithCurrency} - {offer.redemption_count} + 0 ? createRedemptionFilterUrl(offer.id ? offer.id : '') : undefined} onClick={offer.redemption_count === 0 ? !isTierArchived ? () => handleOfferEdit(offer?.id ? offer.id : '') : () => {} : () => {}}>{offer.redemption_count} {!isTierArchived ? : null} {isTierArchived ?
This offer is disabled, because
it is tied to an archived tier.
: