Skip to content

Commit 36978ba

Browse files
committed
fix(ActionsHandler):: auth used wrongly
1 parent 23d0644 commit 36978ba

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/layouts/App/ActionsHandler.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import { FC, useEffect } from 'react';
22
import { useRouter } from 'next/router';
33

4-
import auth from '../../../utils/auth';
4+
import { useAuth } from '../../../context/authContext/AuthContext';
55

66
export const ActionsHandler: FC = ({ children }) => {
77
const router = useRouter();
88
const {query} = router;
99
const redirectTo = query.redirectTo || '';
10+
const auth = useAuth();
1011

1112
useEffect(() => {
1213
const redirectedFrom = query.from;

0 commit comments

Comments
 (0)