enzostvs HF Staff commited on
Commit
7c1b8e2
·
1 Parent(s): ae33659

default redirect

Browse files
Files changed (1) hide show
  1. hooks/useUser.ts +5 -5
hooks/useUser.ts CHANGED
@@ -106,12 +106,12 @@ export const useUser = (initialData?: {
106
  user: res.data.user,
107
  errCode: null,
108
  });
109
- if (currentRoute) {
110
- router.push(currentRoute);
111
- removeCurrentRoute();
112
- } else {
113
  router.push("/");
114
- }
115
  toast.success("Login successful");
116
  }
117
  })
 
106
  user: res.data.user,
107
  errCode: null,
108
  });
109
+ // if (currentRoute) {
110
+ // router.push(currentRoute);
111
+ // removeCurrentRoute();
112
+ // } else {
113
  router.push("/");
114
+ // }
115
  toast.success("Login successful");
116
  }
117
  })