feat: profile link with userId

This commit is contained in:
DIYgod 2024-07-09 23:31:42 +08:00
parent 833a0f0177
commit ad26bd6f76
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ export const ProfileButton: FC<LoginProps> = memo((props) => {
<DropdownMenuSeparator />
<DropdownMenuItem
onClick={() => {
window.open(`${WEB_URL}/profile/${user?.handle}`, "_blank")
window.open(`${WEB_URL}/profile/${user?.handle || user?.id}`, "_blank")
}}
>
<i className="i-mgc-user-3-cute-re mr-1.5" />