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}
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuSeparator />
|
||||
<Link href={`/profile/${user.profile?.username || user.username || user.id}`}>
|
||||
<Link href={`/profile/${user.id}`}>
|
||||
<DropdownMenuItem>Profile</DropdownMenuItem>
|
||||
</Link>
|
||||
<Link href="/settings">
|
||||
|
|
@ -189,7 +189,7 @@ export function Navbar() {
|
|||
</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"
|
||||
onClick={() => setMobileMenuOpen(false)}
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue