check-verified-fix
Some checks failed
deploy / test (push) Successful in 1m7s
deploy / Update templates on Mailgun (push) Failing after 4s

This commit is contained in:
Untone 2024-01-18 18:57:10 +03:00
parent 1af7ba520e
commit cbb66c5452
2 changed files with 3 additions and 3 deletions

View File

@ -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()}>

View File

@ -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) {