Skip to content

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

mobile: resolve undefine id issue in subscription product items

Ammar Ahmed37893ced80a6
diff --git a/apps/mobile/app/components/sheets/buy-plan/index.tsx b/apps/mobile/app/components/sheets/buy-plan/index.tsx
index 1504bcffc..b91b86ed5 100644
--- a/apps/mobile/app/components/sheets/buy-plan/index.tsx
+++ b/apps/mobile/app/components/sheets/buy-plan/index.tsx
@@ -356,7 +356,7 @@ const ProductItem = (props: {
(product as RNIap.Subscription)?.productId
) ||
props.pricingPlans.user?.subscription?.productId ===
- (product as Plan).id);
+ (product as Plan)?.id);
useEffect(() => {
props.pricingPlans