diff --git a/src/Components/Login/SignOutServer.js b/src/Components/Login/SignOutServer.js index ac866f2..067cb15 100644 --- a/src/Components/Login/SignOutServer.js +++ b/src/Components/Login/SignOutServer.js @@ -11,8 +11,8 @@ const SignOutServer = () => { const serverSignout = async () => { try { setUser(null) - localStorage.clear() await signOutServer() + localStorage.clear() } catch (error) { console.error('Server signout error:', error.response ? error.response.data : error.message) }