Skip to content

πŸ™Œ OpenHands: AI-Driven Development

fix(frontend): Fix waitlist logic (#4492)

sp.wack5cc16cb82a94
diff --git a/frontend/src/utils/user-is-authenticated.ts b/frontend/src/utils/user-is-authenticated.ts
index c46f32820b..467c030762 100644
--- a/frontend/src/utils/user-is-authenticated.ts
+++ b/frontend/src/utils/user-is-authenticated.ts
@@ -2,7 +2,7 @@ import { retrieveGitHubUser, isGitHubErrorReponse } from "#/api/github";
import OpenHands from "#/api/open-hands";
export const userIsAuthenticated = async (ghToken: string | null) => {
- if (window.__APP_MODE__ === "oss") return true;
+ if (window.__APP_MODE__ !== "saas") return true;
let user: GitHubUser | GitHubErrorReponse | null = null;
if (ghToken) user = await retrieveGitHubUser(ghToken);