diff --git a/app/(account)/settings/page.tsx b/app/(account)/settings/page.tsx index 0c22a45..7d02fa6 100644 --- a/app/(account)/settings/page.tsx +++ b/app/(account)/settings/page.tsx @@ -11,12 +11,11 @@ import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group" import { Separator } from "@/components/ui/separator" import { Switch } from "@/components/ui/switch" import { Textarea } from "@/components/ui/textarea" -import { currentUser } from "@/lib/mock" import type { UserRole } from "@/lib/types" import { useAuthStore } from "@/store/auth" export default function SettingsPage() { - const { currentRole, verifiedRoles, switchRole } = useAuthStore() + const { currentRole, verifiedRoles, switchRole, user } = useAuthStore() const isRoleVerified = (role: UserRole) => verifiedRoles.includes(role) @@ -31,8 +30,8 @@ export default function SettingsPage() {
- - {currentUser.nickname[0]} + + {user?.nickname?.[0] ?? "?"}