fix: use user.id for profile link, fix TS errors
Some checks failed
Deploy Fediversion / deploy (push) Failing after 1s
Some checks failed
Deploy Fediversion / deploy (push) Failing after 1s
This commit is contained in:
parent
58f077268f
commit
97417ee03c
1 changed files with 2 additions and 2 deletions
|
|
@ -96,7 +96,7 @@ export function Navbar() {
|
||||||
{user.email}
|
{user.email}
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
<DropdownMenuSeparator />
|
<DropdownMenuSeparator />
|
||||||
<Link href={`/profile/${user.profile?.username || user.username || user.id}`}>
|
<Link href={`/profile/${user.id}`}>
|
||||||
<DropdownMenuItem>Profile</DropdownMenuItem>
|
<DropdownMenuItem>Profile</DropdownMenuItem>
|
||||||
</Link>
|
</Link>
|
||||||
<Link href="/settings">
|
<Link href="/settings">
|
||||||
|
|
@ -189,7 +189,7 @@ export function Navbar() {
|
||||||
</Link>
|
</Link>
|
||||||
)}
|
)}
|
||||||
<Link
|
<Link
|
||||||
href={`/profile/${user.profile?.username || user.username || user.id}`}
|
href={`/profile/${user.id}`}
|
||||||
className="px-3 py-2 rounded-md hover:bg-muted transition-colors"
|
className="px-3 py-2 rounded-md hover:bg-muted transition-colors"
|
||||||
onClick={() => setMobileMenuOpen(false)}
|
onClick={() => setMobileMenuOpen(false)}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue