From 9cc7818e44130bef26fb32b8d49dddafb9f99785 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 15 Nov 2024 11:30:47 +0100 Subject: [PATCH] Update --- .eslintrc.json | 5 ++++- app/(authenticated)/layout.js | 2 -- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index bffb357..09937b6 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,3 +1,6 @@ { - "extends": "next/core-web-vitals" + "extends": "next/core-web-vitals", + "rules": { + "react-hooks/exhaustive-deps": "off" + } } diff --git a/app/(authenticated)/layout.js b/app/(authenticated)/layout.js index 72ad981..7ffc322 100644 --- a/app/(authenticated)/layout.js +++ b/app/(authenticated)/layout.js @@ -19,13 +19,11 @@ export default function UserLayout({ children }) { const token = Cookies.get("analogueshifts"); useEffect(() => { - // Redirect To Login if User is not Authenticated if (!user && !token) { Cookies.set("RedirectionLink", pathname); window.location.href = "https://auth.analogueshifts.app?app=pay"; return null; } else if (!user && token) { - // Fetch User getUser({ setLoading, layout: "authenticated" }); } }, []);