From ba8e098baf1f5b4a7c7a0f4b78b5c0f30e22aee8 Mon Sep 17 00:00:00 2001 From: siddhantprateek Date: Mon, 15 Jul 2024 10:08:02 +0530 Subject: [PATCH] fixed the eslint error --- cyclops-ui/src/context/AuthContext.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cyclops-ui/src/context/AuthContext.tsx b/cyclops-ui/src/context/AuthContext.tsx index 275422b48..8bd5d09e1 100644 --- a/cyclops-ui/src/context/AuthContext.tsx +++ b/cyclops-ui/src/context/AuthContext.tsx @@ -23,14 +23,14 @@ export const AuthProvider: React.FC<{ children: ReactNode }> = ({ useEffect(() => { // If authentication is disable pass the authentication check - if (process.env.REACT_APP_CYCLOPS_AUTH == "disable") { + if (process.env.REACT_APP_CYCLOPS_AUTH === "disable") { setIsAuthenticated(true); } // Check if the user is authenticated if ( Cookies.get("_isAuthenticated") === "true" && - process.env.REACT_APP_CYCLOPS_AUTH == "enable" + process.env.REACT_APP_CYCLOPS_AUTH === "enable" ) { setIsAuthenticated(true); }