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) => {
|
export const HeaderAuth = (props: Props) => {
|
||||||
const { t } = useLocalize()
|
const { t } = useLocalize()
|
||||||
const { page } = useRouter()
|
const { page } = useRouter()
|
||||||
const { session, author, isAuthenticated, isSessionLoaded } = useSession()
|
const { session, author, isAuthenticated } = useSession()
|
||||||
const {
|
const {
|
||||||
unreadNotificationsCount,
|
unreadNotificationsCount,
|
||||||
actions: { showNotificationsPanel },
|
actions: { showNotificationsPanel },
|
||||||
|
@ -111,7 +111,7 @@ export const HeaderAuth = (props: Props) => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ShowOnlyOnClient>
|
<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={clsx('col-auto col-lg-7', styles.usernav)}>
|
||||||
<div class={styles.userControl}>
|
<div class={styles.userControl}>
|
||||||
<Show when={isCreatePostButtonVisible()}>
|
<Show when={isCreatePostButtonVisible()}>
|
||||||
|
|
|
@ -211,7 +211,7 @@ export const SessionProvider = (props: {
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
const metaRes = await authorizer().getMetaData()
|
const metaRes = await authorizer().getMetaData()
|
||||||
setConfig({ ...defaultConfig, ...metaRes, redirectURL: window.location.origin })
|
setConfig({ ...defaultConfig, ...metaRes, redirectURL: window.location.origin })
|
||||||
let s
|
let s: AuthToken
|
||||||
try {
|
try {
|
||||||
s = await loadSession()
|
s = await loadSession()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user