smooth log out

This commit is contained in:
talksik
2022-05-28 12:19:45 -05:00
parent 4d7ac449a8
commit ef18e81f77
2 changed files with 51 additions and 12 deletions
@@ -117,6 +117,7 @@ export const AuthProvider = ({ children }: { children: React.ReactNode }) => {
<CircularProgress />
</Container>
);
return (
<AuthContext.Provider value={{ user: currentUser, logout }}>
{currentUser ? <>{children}</> : <Login />}