Skip to content

Commit

Permalink
fixed the eslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhantprateek committed Jul 15, 2024
1 parent bbeb793 commit ba8e098
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cyclops-ui/src/context/AuthContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit ba8e098

Please sign in to comment.