prevent accidental lightning

This commit is contained in:
keyan 2021-09-24 18:14:35 -05:00
parent 00fff8a67d
commit d208c818a6
1 changed files with 3 additions and 3 deletions

View File

@ -30,14 +30,14 @@ export default function Header () {
const router = useRouter() const router = useRouter()
const path = router.asPath.split('?')[0] const path = router.asPath.split('?')[0]
const me = useMe() const me = useMe()
const [, loading] = useSession() const [session, loading] = useSession()
const Corner = () => { const Corner = () => {
if (loading && !me) { if (loading || !me) {
return null return null
} }
if (me) { if (session) {
return ( return (
<div className='d-flex align-items-center'> <div className='d-flex align-items-center'>
<Head> <Head>