|
|
@@ -378,20 +378,21 @@ const InvitePage: React.FunctionComponent<Props> = ({}) => {
|
|
|
}, [invites, currentProject?.id, window?.location?.host, isHTTPS, user?.id]);
|
|
|
|
|
|
const hasSeats = useMemo(() => {
|
|
|
- if (String(edition) === "dev-ee") {
|
|
|
- return true;
|
|
|
- }
|
|
|
-
|
|
|
- if (!hasBillingEnabled) {
|
|
|
- return true;
|
|
|
- }
|
|
|
-
|
|
|
- if (usage?.limit.users === 0) {
|
|
|
- // If usage limit is 0, the project has unlimited seats. Otherwise, check
|
|
|
- // the usage limit against the current usage.
|
|
|
- return true;
|
|
|
- }
|
|
|
- return usage?.current.users < usage?.limit.users;
|
|
|
+ // if (String(edition) === "dev-ee") {
|
|
|
+ // return true;
|
|
|
+ // }
|
|
|
+
|
|
|
+ // if (!hasBillingEnabled) {
|
|
|
+ // return true;
|
|
|
+ // }
|
|
|
+
|
|
|
+ // if (usage?.limit.users === 0) {
|
|
|
+ // // If usage limit is 0, the project has unlimited seats. Otherwise, check
|
|
|
+ // // the usage limit against the current usage.
|
|
|
+ // return true;
|
|
|
+ // }
|
|
|
+ // return usage?.current.users < usage?.limit.users;
|
|
|
+ return true;
|
|
|
}, [hasBillingEnabled, usage, edition]);
|
|
|
|
|
|
if (hasBillingEnabled === null && usage === null) {
|