Skip to content

Commit ca505eb

Browse files
committed
Don't show waitlist if /stats/ endpoint fails
This is a safer failure mode given Monitor's current state.
1 parent 54aece2 commit ca505eb

File tree

1 file changed

+2
-2
lines changed
  • src/app/(proper_react)/(redesign)/(public)

1 file changed

+2
-2
lines changed

src/app/(proper_react)/(redesign)/(public)/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ export default async function Page() {
7070
);
7171
const oneRepActivations = profileStats?.total_active;
7272
const scanLimitReached =
73-
typeof oneRepActivations === "undefined" ||
74-
oneRepActivations > monthlySubscribersQuota ||
73+
(typeof oneRepActivations !== "undefined" &&
74+
oneRepActivations > monthlySubscribersQuota) ||
7575
(enabledFeatureFlags.includes("DisableOneRepScans") && eligibleForPremium);
7676

7777
return (

0 commit comments

Comments
 (0)