From a21111368e444f65f2512abb79a82aea47b43f90 Mon Sep 17 00:00:00 2001 From: Ammar Ahmed Date: Fri, 12 Sep 2025 14:52:39 +0500 Subject: [PATCH] mobile: fix pricing on gh release --- apps/mobile/app/common/database/index.ts | 2 +- .../app/components/sheets/buy-plan/index.tsx | 38 ++++--------------- 2 files changed, 9 insertions(+), 31 deletions(-) diff --git a/apps/mobile/app/common/database/index.ts b/apps/mobile/app/common/database/index.ts index 7749686af..924eec028 100644 --- a/apps/mobile/app/common/database/index.ts +++ b/apps/mobile/app/common/database/index.ts @@ -38,7 +38,7 @@ export async function setupDatabase(password?: string) { const key = await getDatabaseKey(password); if (!key) throw new Error(strings.databaseSetupFailed()); - const base = `http://192.168.100.79`; + const base = `http://192.168.100.83`; database.host({ API_HOST: `${base}:5264`, diff --git a/apps/mobile/app/components/sheets/buy-plan/index.tsx b/apps/mobile/app/components/sheets/buy-plan/index.tsx index 2f467efd3..fafe4d8ef 100644 --- a/apps/mobile/app/components/sheets/buy-plan/index.tsx +++ b/apps/mobile/app/components/sheets/buy-plan/index.tsx @@ -64,8 +64,6 @@ export const BuyPlan = (props: { : (pricingPlans.selectedProduct as RNIap.Product)?.productId )?.includes("5"); - console.log(checkoutUrl); - return checkoutUrl ? ( - - - - - Basic HTML Page with Button - - -

Welcome to My Page

-

This is a simple example of an HTML page with a button.

- - - - -` + uri: checkoutUrl }} onMessage={(message) => { try { @@ -107,6 +84,8 @@ export const BuyPlan = (props: { }} domStorageEnabled javaScriptEnabled + cacheEnabled + enabled style={{ flex: 1 }} @@ -182,7 +161,8 @@ export const BuyPlan = (props: { {pricingPlans.hasTrialOffer( props.planId, - (pricingPlans.selectedProduct as RNIap.Product).productId + (pricingPlans?.selectedProduct as RNIap.Product)?.productId || + (pricingPlans?.selectedProduct as Plan)?.period ) ? (