From f63e901445fe2a7732db679ef962dea5f53950ee Mon Sep 17 00:00:00 2001 From: lovegaoshi <106490582+lovegaoshi@users.noreply.github.com> Date: Thu, 5 Dec 2024 16:23:48 -0800 Subject: [PATCH] fix: billing --- package.json | 2 +- src/hooks/useVIP.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9709eab3..04d801c8 100644 --- a/package.json +++ b/package.json @@ -183,5 +183,5 @@ "node": ">=18.0.0" }, "isSwift": true, - "packageManager": "yarn@4.5.1" + "packageManager": "yarn@4.5.3" } diff --git a/src/hooks/useVIP.ts b/src/hooks/useVIP.ts index 40c967e8..2d09fa66 100644 --- a/src/hooks/useVIP.ts +++ b/src/hooks/useVIP.ts @@ -35,7 +35,7 @@ const initRevenueCatWeb = async (userid?: string) => { const getVIPStatus = async () => { if (APPSTORE) { const customerInfo = await Purchases.getCustomerInfo(); - return customerInfo.entitlements.active[VIPId] === undefined; + return customerInfo.entitlements.active[VIPId] !== undefined; } await initRevenueCatWeb(); const customerInfo = await PurchasesWeb.getSharedInstance().getCustomerInfo();