enable team billing when HOSTED_CAL_FEATURES isset (#5516)

* enable team billing when `HOSTED_CAL_FEATURES` isset

* changed comment above of `IS_TEAM_BILLING_ENABLED` in constants.ts

Co-authored-by: René Müller <[email protected]>
This commit is contained in:
René MüllerandRené Müller authored and GitHub committed 2022-11-18 11:59:01 -07:00
1 parent cb96b12108
commit b201067f86
1 file changed
+2 -2
+2 -2
View File
@@ -41,5 +41,5 @@ export const IS_STRIPE_ENABLED = !!(
process.env.NEXT_PUBLIC_STRIPE_PUBLIC_KEY &&
process.env.STRIPE_PRIVATE_KEY
);
/** Self hosted shouldn't checkout when creating teams */
export const IS_TEAM_BILLING_ENABLED = IS_STRIPE_ENABLED && !IS_SELF_HOSTED;
/** Self hosted shouldn't checkout when creating teams unless required */
export const IS_TEAM_BILLING_ENABLED = IS_STRIPE_ENABLED && (!IS_SELF_HOSTED || HOSTED_CAL_FEATURES);