From 5dc9698c9885cc0f53607a730571c09dc7824744 Mon Sep 17 00:00:00 2001 From: Momin Riyadh Date: Sat, 16 Dec 2023 10:01:49 +0600 Subject: [PATCH] Update authSlice.js initialState declaration object has been update --- frontend/src/features/auth/authSlice.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,