From 3fef324968cfb854dc6ee3e97d66c572b83416ef Mon Sep 17 00:00:00 2001 From: Nareshkumar Rao <_accounts@nareshkumarrao.com> Date: Thu, 29 Jul 2021 18:14:50 +0200 Subject: [PATCH] fixed equality in authSlice.js --- src/features/auth/authSlice.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/auth/authSlice.js b/src/features/auth/authSlice.js index e1d61a3..e1871d3 100644 --- a/src/features/auth/authSlice.js +++ b/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({