smal refactoring

This commit is contained in:
tonyrewin 2022-10-04 15:18:39 +03:00
parent e11916298e
commit 9073b1e91f

View File

@ -25,7 +25,7 @@ export const AuthorCard = (props: AuthorCardProps) => {
const subscribed = createMemo( const subscribed = createMemo(
() => () =>
!!session() !!session()
?.info?.authors?.filter((u) => u === props.author.slug) ?.news?.authors?.filter((u) => u === props.author.slug)
.pop() .pop()
) )
const canFollow = createMemo(() => !props.hideFollow && session()?.user?.slug !== props.author.slug) const canFollow = createMemo(() => !props.hideFollow && session()?.user?.slug !== props.author.slug)