 - This should be a quick fix, and would save the user from visiting their settings page and logging out from there - The function to log a user out can be taken from the `AccountSettings` component and reused for this: ``` const logout = () => { localStorage.removeItem("trusat-login-credentials"); localStorage.removeItem("trusat-allow-cookies"); history.push("/"); window.location.reload(); }; ```
AccountSettingscomponent and reused for this: