diff options
author | eug-vs <eug-vs@keemail.me> | 2020-06-30 01:27:39 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-06-30 01:27:39 +0300 |
commit | b31ed66aafbe1d5dbe70d0cdfd70864204510d81 (patch) | |
tree | a279ed47157436cd4223698db38cfb2b1ce3ec3d /src/components/Header | |
parent | 5ccb1ec0be71ed4efb22b4942d70d9132415f69e (diff) | |
download | which-ui-b31ed66aafbe1d5dbe70d0cdfd70864204510d81.tar.gz |
fix: re-implement navigation logic
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 => {}; |