Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: show discount on web plan offer

Ammar Ahmed901dc4fe6db2
diff --git a/apps/mobile/app/components/paywall/index.tsx b/apps/mobile/app/components/paywall/index.tsx
index 962e1b35d..61c6143f8 100644
--- a/apps/mobile/app/components/paywall/index.tsx
+++ b/apps/mobile/app/components/paywall/index.tsx
@@ -1018,7 +1018,7 @@ const PricingPlanCard = ({
gap: 6
}}
>
- {regionalDiscount?.discount ? (
+ {regionalDiscount?.discount || WebPlan?.discount ? (
<View
style={{
backgroundColor: colors.static.red,
@@ -1032,7 +1032,9 @@ const PricingPlanCard = ({
>
<Heading color={colors.static.white} size={AppFontSize.xs}>
{strings.specialOffer()}{" "}
- {strings.percentOff(`${regionalDiscount?.discount}`)}
+ {strings.percentOff(
+ `${regionalDiscount?.discount || WebPlan?.discount?.amount}`
+ )}
</Heading>
</View>
) : null}