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

This commit is contained in:
sp.wack
2024-10-19 22:20:54 +04:00
committed by GitHub
parent cc68756b26
commit 5cc16cb82a

View File

@@ -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);