aboutsummaryrefslogtreecommitdiff
path: root/src/hooks
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/hooks
parent5ccb1ec0be71ed4efb22b4942d70d9132415f69e (diff)
downloadwhich-ui-b31ed66aafbe1d5dbe70d0cdfd70864204510d81.tar.gz
fix: re-implement navigation logic
Diffstat (limited to 'src/hooks')
-rw-r--r--src/hooks/useAuth.tsx2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/hooks/useAuth.tsx b/src/hooks/useAuth.tsx
index 00d0c7c..de64c46 100644
--- a/src/hooks/useAuth.tsx
+++ b/src/hooks/useAuth.tsx
@@ -33,7 +33,6 @@ const useProvideAuth = () => {
const me = response.data.user;
const token = response.data.accessToken;
setUser(me);
- // navigate('profile', me._id);
localStorage.setItem('userId', me._id);
localStorage.setItem('token', token);
if (!remember) localStorage.setItem('shouldClear', 'true');
@@ -45,7 +44,6 @@ const useProvideAuth = () => {
setUser(null);
localStorage.removeItem('userId');
localStorage.removeItem('token');
- // navigate('auth');
};
const isAuthenticated = () => Boolean(user);