Skip to content

Commit

Permalink
Feat(Username): Use useSession Hook
Browse files Browse the repository at this point in the history
  • Loading branch information
WillKirkmanM committed Oct 7, 2024
1 parent 6ca2efe commit 3be2755
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/web/components/User/Username.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 3be2755

Please sign in to comment.