prevent accidental lightning
This commit is contained in:
parent
00fff8a67d
commit
d208c818a6
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue