Commit 442da8be by G

use the state value for isAuthenticated

parent bdc8e376
...@@ -14,7 +14,9 @@ export const UserAuthenticationContextProvider = ({ children }: { children: Reac ...@@ -14,7 +14,9 @@ export const UserAuthenticationContextProvider = ({ children }: { children: Reac
const [isAuthenticated, setIsAuthenticated] = useState(false); const [isAuthenticated, setIsAuthenticated] = useState(false);
return ( return (
<UserAuthenticationContext.Provider value={{ isAuthenticated: true, setIsAuthenticated }}> <UserAuthenticationContext.Provider
value={{ isAuthenticated: isAuthenticated, setIsAuthenticated }}
>
{children} {children}
</UserAuthenticationContext.Provider> </UserAuthenticationContext.Provider>
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment