fix: error on logout from /account page

This commit is contained in:
bsourisse 2023-01-12 17:02:03 +01:00
parent 575ae6b35c
commit 5dc2fe9d30

View file

@ -12,6 +12,10 @@ export default function Account() {
////Var
const { status, data } = useSession();
//Function
if (status == 'unauthenticated' || status == 'loading') {
return <p>Loading...</p>;
}
return (
<>
<Head>