diff options
Diffstat (limited to 'src/components/Header')
-rw-r--r-- | src/components/Header/Header.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx index 546ecc3..72e40f8 100644 --- a/src/components/Header/Header.tsx +++ b/src/components/Header/Header.tsx @@ -40,7 +40,8 @@ const Header: React.FC = () => { }; const handleProfile = (): void => { - navigate('profile'); + if (user) navigate('profile'); + else navigate('auth'); }; const handleNotifications = (): void => {}; |