diff --git a/frontend/src/features/auth/authSlice.js b/frontend/src/features/auth/authSlice.js index 5a8ba48f..e456df60 100644 --- a/frontend/src/features/auth/authSlice.js +++ b/frontend/src/features/auth/authSlice.js @@ -5,7 +5,7 @@ import authService from './authService' const user = JSON.parse(localStorage.getItem('user')) const initialState = { - user: user ? user : null, + user: user || null, isError: false, isSuccess: false, isLoading: false,