working recording and just playing, now have to just upload and add to to database and cs

This commit is contained in:
talksik
2022-05-29 10:00:24 -05:00
parent 3624b6022d
commit 754f9ce300
3 changed files with 90 additions and 27 deletions
@@ -134,9 +134,11 @@ export const AuthProvider = ({ children }: { children: React.ReactNode }) => {
</Container>
);
if (!currentUser || !currentNirvanaUser) return <Login />;
return (
<AuthContext.Provider value={{ user: currentUser, logout, nirvanaUser: currentNirvanaUser }}>
{currentUser && currentNirvanaUser ? <>{children}</> : <Login />}
{children}
</AuthContext.Provider>
);
};