Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Removed code to call ${username}

Marcus Farrell1dc1c14adec4
diff --git a/apps/web/lib/partners/get-link-structure-options.ts b/apps/web/lib/partners/get-link-structure-options.ts
index d41dbc83b7..2cd48f2661 100644
--- a/apps/web/lib/partners/get-link-structure-options.ts
+++ b/apps/web/lib/partners/get-link-structure-options.ts
@@ -2,7 +2,6 @@
import { LinkStructure } from "@dub/prisma/client";
import { getDomainWithoutWWW } from "@dub/utils";
-import { useSession } from "next-auth/react";
export const getLinkStructureOptions = ({
domain,
@@ -11,11 +10,6 @@ export const getLinkStructureOptions = ({
domain?: string | null;
url?: string | null;
}) => {
- const { data: session } = useSession();
- const username =
- session?.user?.name?.split(" ")[0].toLowerCase() ??
- session?.user?.email?.split("@")[0] ??
- "steven";
const shortDomain = domain || "refer.dub.co";
const websiteDomain = (url && getDomainWithoutWWW(url)) || "dub.co";