summaryrefslogtreecommitdiff
path: root/src/components/header/ProfileOrLogin.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/header/ProfileOrLogin.tsx')
-rw-r--r--src/components/header/ProfileOrLogin.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/header/ProfileOrLogin.tsx b/src/components/header/ProfileOrLogin.tsx
index 416418b..68c81f6 100644
--- a/src/components/header/ProfileOrLogin.tsx
+++ b/src/components/header/ProfileOrLogin.tsx
@@ -21,11 +21,11 @@ export function ProfileOrLogin() {
</Dialog>
);
}
-
+ const profileLink = `/profile/${user.username}`;
return (
- <Link href={'/profile'}>
+ <Link href={profileLink}>
<Image
- src={user?.avatar ?? 'icons/avatar.svg'}
+ src={user?.avatar ?? '/icons/avatar.svg'}
alt=""
width={60}
height={60}