Skip to content

Commit ba8e098

Browse files
fixed the eslint error
1 parent bbeb793 commit ba8e098

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cyclops-ui/src/context/AuthContext.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ export const AuthProvider: React.FC<{ children: ReactNode }> = ({
2323

2424
useEffect(() => {
2525
// If authentication is disable pass the authentication check
26-
if (process.env.REACT_APP_CYCLOPS_AUTH == "disable") {
26+
if (process.env.REACT_APP_CYCLOPS_AUTH === "disable") {
2727
setIsAuthenticated(true);
2828
}
2929

3030
// Check if the user is authenticated
3131
if (
3232
Cookies.get("_isAuthenticated") === "true" &&
33-
process.env.REACT_APP_CYCLOPS_AUTH == "enable"
33+
process.env.REACT_APP_CYCLOPS_AUTH === "enable"
3434
) {
3535
setIsAuthenticated(true);
3636
}

0 commit comments

Comments
 (0)