feat: improve sign out

This commit is contained in:
Chubby Granny Chaser
2024-06-21 01:34:59 +01:00
parent 0ac17e95ff
commit 8afb3c27dc
12 changed files with 35 additions and 15 deletions

View File

@@ -96,11 +96,11 @@ export function App() {
window.electron.isUserLoggedIn().then((isLoggedIn) => {
if (isLoggedIn) {
fetchUserDetails().then((response) => {
if (response) setUserDetails(response);
if (response) updateUserDetails(response);
});
}
});
}, [dispatch, fetchUserDetails]);
}, [fetchUserDetails, updateUserDetails, dispatch]);
const onSignIn = useCallback(() => {
fetchUserDetails().then((response) => {