working recording and just playing, now have to just upload and add to to database and cs
This commit is contained in:
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user