Browse Source

fixed equality in authSlice.js

pull/4/head
Nareshkumar Rao 3 years ago
parent
commit
3fef324968
  1. 2
      src/features/auth/authSlice.js

2
src/features/auth/authSlice.js

@ -2,7 +2,7 @@ import { createSlice } from '@reduxjs/toolkit';
import Cookies from 'js-cookie';
const initialState = {
isAuthenticated: Cookies.get('authorized') == "true" ? true : false,
isAuthenticated: Cookies.get('authorized') === "true" ? true : false,
};
export const authSlice = createSlice({

Loading…
Cancel
Save