diff --git a/contexts/Auth/AuthContext.tsx b/contexts/Auth/AuthContext.tsx index 666ab60a..c3222abd 100644 --- a/contexts/Auth/AuthContext.tsx +++ b/contexts/Auth/AuthContext.tsx @@ -7,8 +7,7 @@ import { useReducer, useRef, } from "react"; -import { useRouter } from "next/navigation"; -import { usePathname } from "next/navigation"; +import { useRouter, usePathname } from "next/navigation"; import useSWR, { SWRConfig } from "swr"; import { useDispatch } from "react-redux"; @@ -194,6 +193,9 @@ export function AuthProvider({ children }: PropsWithChildren) { dispatch({ type: ActionTypes.UPDATE_USER, payload }); break; } + default: { + break; + } } }, openLoginModal: (payload) => {