check-verified-fix
This commit is contained in:
parent
1af7ba520e
commit
cbb66c5452
|
@ -32,7 +32,7 @@ const MD_WIDTH_BREAKPOINT = 992
|
|||
export const HeaderAuth = (props: Props) => {
|
||||
const { t } = useLocalize()
|
||||
const { page } = useRouter()
|
||||
const { session, author, isAuthenticated, isSessionLoaded } = useSession()
|
||||
const { session, author, isAuthenticated } = useSession()
|
||||
const {
|
||||
unreadNotificationsCount,
|
||||
actions: { showNotificationsPanel },
|
||||
|
@ -111,7 +111,7 @@ export const HeaderAuth = (props: Props) => {
|
|||
|
||||
return (
|
||||
<ShowOnlyOnClient>
|
||||
<Show when={isSessionLoaded()} keyed={true}>
|
||||
<Show when={session()?.user?.email_verified} keyed={true}>
|
||||
<div class={clsx('col-auto col-lg-7', styles.usernav)}>
|
||||
<div class={styles.userControl}>
|
||||
<Show when={isCreatePostButtonVisible()}>
|
||||
|
|
|
@ -211,7 +211,7 @@ export const SessionProvider = (props: {
|
|||
onMount(async () => {
|
||||
const metaRes = await authorizer().getMetaData()
|
||||
setConfig({ ...defaultConfig, ...metaRes, redirectURL: window.location.origin })
|
||||
let s
|
||||
let s: AuthToken
|
||||
try {
|
||||
s = await loadSession()
|
||||
} catch (error) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user