From 3be275532f60ed82de2a7d895009e121670f6983 Mon Sep 17 00:00:00 2001 From: WillKirkmanM Date: Mon, 7 Oct 2024 15:42:53 +0100 Subject: [PATCH] Feat(Username): Use useSession Hook --- apps/web/components/User/Username.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/web/components/User/Username.tsx b/apps/web/components/User/Username.tsx index f97b5a7c..9cc8163c 100644 --- a/apps/web/components/User/Username.tsx +++ b/apps/web/components/User/Username.tsx @@ -16,9 +16,10 @@ import { FormLabel, FormMessage, } from "@music/ui/components/form" +import { useSession } from "../Providers/AuthProvider" export default function Username() { - const session = getSession() + const { session } = useSession() const username = session?.username const FormSchema = z.object({