We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b41c121 commit a8e2660Copy full SHA for a8e2660
1 file changed
apps/website/app/utils/supabase/account.ts
@@ -19,6 +19,7 @@ export const getSessionUserData = async (
19
if (host === "database.discoursegraphs.com" && name.endsWith("-anon")) {
20
const parts = name.split("-");
21
const spaceId = Number.parseInt(parts[1]!);
22
+ if (Number.isNaN(spaceId)) return null;
23
const spaceReq = await client
24
.from("Space")
25
.select("name")
0 commit comments