From 5dc2fe9d302b59ba41a0418f8c640be950d525a6 Mon Sep 17 00:00:00 2001 From: bsourisse Date: Thu, 12 Jan 2023 17:02:03 +0100 Subject: [PATCH] fix: error on logout from /account page --- pages/account/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/account/index.js b/pages/account/index.js index 27a367e..e52a68b 100644 --- a/pages/account/index.js +++ b/pages/account/index.js @@ -12,6 +12,10 @@ export default function Account() { ////Var const { status, data } = useSession(); + //Function + if (status == 'unauthenticated' || status == 'loading') { + return

Loading...

; + } return ( <>