profile-fixes
This commit is contained in:
parent
ac9fd8d313
commit
4e7cfa9241
|
@ -67,7 +67,7 @@ export const AuthorView = (props: Props) => {
|
||||||
const { authors, profile, topics } = appdata
|
const { authors, profile, topics } = appdata
|
||||||
setFollowers(myFollowers)
|
setFollowers(myFollowers)
|
||||||
setAuthor(profile)
|
setAuthor(profile)
|
||||||
setFollowing([...authors, ...topics])
|
setFollowing([...(authors || []), ...(topics || [])])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -260,7 +260,9 @@ export const AuthorView = (props: Props) => {
|
||||||
</div>
|
</div>
|
||||||
</Match>
|
</Match>
|
||||||
<Match when={getPage().route === 'authorComments'}>
|
<Match when={getPage().route === 'authorComments'}>
|
||||||
<Show when={session()?.user?.app_data?.profile?.slug === props.authorSlug && !commented().length}>
|
<Show
|
||||||
|
when={session()?.user?.app_data?.profile?.slug === props.authorSlug && !commented()?.length}
|
||||||
|
>
|
||||||
<div class="wide-container">
|
<div class="wide-container">
|
||||||
<Placeholder type={getPage().route} mode="profile" />
|
<Placeholder type={getPage().route} mode="profile" />
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user