We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eb77c16 + 41b1465 commit e3df938Copy full SHA for e3df938
apps/web/utils/useDatabase.ts
@@ -20,7 +20,7 @@ export const getUserById = async (user_id: string): Promise<IUser> => {
20
21
return {
22
...user,
23
- has_active_subscription: user.pro_gifted ?? ["trialing", "active"].includes(
+ has_active_subscription: user.pro_gifted ? true : ["trialing", "active"].includes(
24
(user?.stripe_subscription as unknown as Stripe.Subscription)?.status
25
),
26
} as unknown as IUser;
0 commit comments