From 7e1b8b4b005594d87a954c15bc9325861efaa6d0 Mon Sep 17 00:00:00 2001 From: Sean Brydon Date: Thu, 21 Sep 2023 11:04:19 +0100 Subject: [PATCH] Unused --- apps/web/pages/signup.tsx | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/apps/web/pages/signup.tsx b/apps/web/pages/signup.tsx index a199eca793..dada60dc12 100644 --- a/apps/web/pages/signup.tsx +++ b/apps/web/pages/signup.tsx @@ -127,16 +127,6 @@ function UsernameField({ const checkValidEmail = (email: string) => z.string().email().safeParse(email).success; -const getOrgUsernameFromEmail = (email: string, autoAcceptEmailDomain: string) => { - const [emailUser, emailDomain] = email.split("@"); - const username = - emailDomain === autoAcceptEmailDomain - ? slugify(emailUser) - : slugify(`${emailUser}-${emailDomain.split(".")[0]}`); - - return username; -}; - function addOrUpdateQueryParam(url: string, key: string, value: string) { const separator = url.includes("?") ? "&" : "?"; const param = `${key}=${encodeURIComponent(value)}`;