Skip to content

Commit a8e2660

Browse files
committed
treat malformed numbers
1 parent b41c121 commit a8e2660

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

apps/website/app/utils/supabase/account.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export const getSessionUserData = async (
1919
if (host === "database.discoursegraphs.com" && name.endsWith("-anon")) {
2020
const parts = name.split("-");
2121
const spaceId = Number.parseInt(parts[1]!);
22+
if (Number.isNaN(spaceId)) return null;
2223
const spaceReq = await client
2324
.from("Space")
2425
.select("name")

0 commit comments

Comments
 (0)