diff --git a/src/features/auth/authSlice.js b/src/features/auth/authSlice.js index 92146e1..e1d61a3 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'), + isAuthenticated: Cookies.get('authorized') == "true" ? true : false, }; export const authSlice = createSlice({