diff --git a/apps/mobile/app/components/premium/pricing-item.tsx b/apps/mobile/app/components/premium/pricing-item.tsx index 56a2e5e85..a06a6c657 100644 --- a/apps/mobile/app/components/premium/pricing-item.tsx +++ b/apps/mobile/app/components/premium/pricing-item.tsx @@ -70,10 +70,11 @@ export const PricingItem = ({ {Platform.OS === "android" - ? (product.data as RNIap.SubscriptionAndroid) + ? (product.data as RNIap.SubscriptionAndroid | undefined) ?.subscriptionOfferDetails[0].pricingPhases - .pricingPhaseList?.[0].formattedPrice - : (product.data as RNIap.SubscriptionIOS)?.localizedPrice} + .pricingPhaseList?.[0]?.formattedPrice + : (product.data as RNIap.SubscriptionIOS | undefined) + ?.localizedPrice} {product?.type === "yearly" || product?.offerType === "yearly" ? "/year" diff --git a/apps/mobile/app/components/premium/pricing-plans.tsx b/apps/mobile/app/components/premium/pricing-plans.tsx index c22ca30e8..c7be83ffd 100644 --- a/apps/mobile/app/components/premium/pricing-plans.tsx +++ b/apps/mobile/app/components/premium/pricing-plans.tsx @@ -245,12 +245,12 @@ export const PricingPlans = ({ size={SIZE.lg} > {(Platform.OS === "android" - ? (monthlyPlan?.product as RNIap.SubscriptionAndroid) - ?.subscriptionOfferDetails[0].pricingPhases - .pricingPhaseList?.[0].formattedPrice - : (monthlyPlan?.product as RNIap.SubscriptionIOS) - .localizedPrice) || - (PremiumService.getMontlySub() as any).localizedPrice} + ? (monthlyPlan?.product as RNIap.SubscriptionAndroid | undefined) + ?.subscriptionOfferDetails[0]?.pricingPhases + .pricingPhaseList?.[0]?.formattedPrice + : (monthlyPlan?.product as RNIap.SubscriptionIOS | undefined) + ?.localizedPrice) || + (PremiumService.getMontlySub() as any)?.localizedPrice} / mo