From efe93a3db4e87a04f44489c400b6225172bb3620 Mon Sep 17 00:00:00 2001 From: Jamie Brunton Date: Sat, 10 Jan 2026 23:02:31 +0000 Subject: [PATCH] Fix subscription status showing "Via partner's" after purchase Co-Authored-By: Claude Opus 4.5 --- apps/mobile/src/features/profile/ProfileScreen.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/mobile/src/features/profile/ProfileScreen.tsx b/apps/mobile/src/features/profile/ProfileScreen.tsx index 76e7932..28bb3aa 100644 --- a/apps/mobile/src/features/profile/ProfileScreen.tsx +++ b/apps/mobile/src/features/profile/ProfileScreen.tsx @@ -55,7 +55,9 @@ export function ProfileScreen() { const [showFeedbackModal, setShowFeedbackModal] = React.useState(false); // Derived formatting - const isOwnSubscription = user?.is_premium && subscription.isProUser; + // Use OR: if RevenueCat says they're subscribed OR database says premium, it's their own + // This handles the race condition after purchase (RevenueCat updates before webhook syncs DB) + const isOwnSubscription = subscription.isProUser || user?.is_premium; const hasPremiumAccess = user?.is_premium || partner?.is_premium || subscription.isProUser; const formatExpirationDate = (date: Date | null | string) => {