mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-10-31 18:19:43 +00:00
Fix subscription status showing "Via partner's" after purchase
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f0c2cba60e
commit
efe93a3db4
1 file changed
+3
-1
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user