aboutsummaryrefslogtreecommitdiff
path: root/src/components/Header
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-06-30 01:27:39 +0300
committereug-vs <eug-vs@keemail.me>2020-06-30 01:27:39 +0300
commitb31ed66aafbe1d5dbe70d0cdfd70864204510d81 (patch)
treea279ed47157436cd4223698db38cfb2b1ce3ec3d /src/components/Header
parent5ccb1ec0be71ed4efb22b4942d70d9132415f69e (diff)
downloadwhich-ui-b31ed66aafbe1d5dbe70d0cdfd70864204510d81.tar.gz
fix: re-implement navigation logic
Diffstat (limited to 'src/components/Header')
-rw-r--r--src/components/Header/Header.tsx3
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 => {};