Skip to content

Commit

Permalink
Merge pull request #754 from ever-co/fix/#734-blank-ui
Browse files Browse the repository at this point in the history
fix: #734 Fixed Blank UI
  • Loading branch information
evereq committed Apr 5, 2023
2 parents 87434c9 + af82d19 commit 52d77b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/web/app/hooks/features/useAuthenticateUser.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { DEFAULT_APP_PATH } from '@app/constants';
import { removeAuthCookies } from '@app/helpers/cookies';
import { IUser } from '@app/interfaces/IUserData';
import {
Expand Down Expand Up @@ -34,7 +35,7 @@ export const useAuthenticateUser = (defaultUser?: IUser) => {
const logOut = useCallback(() => {
removeAuthCookies();
window.clearInterval(intervalRt.current);
window.location.reload();
window.location.replace(DEFAULT_APP_PATH);
}, []);

const timeToTimeRefreshToken = useCallback((interval = 3000 * 60) => {
Expand Down

0 comments on commit 52d77b5

Please sign in to comment.