From 9073b1e91f43ac0528c3736620da79ad9b9af0fc Mon Sep 17 00:00:00 2001 From: tonyrewin Date: Tue, 4 Oct 2022 15:18:39 +0300 Subject: [PATCH] smal refactoring --- src/components/Author/Card.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Author/Card.tsx b/src/components/Author/Card.tsx index 5e9c5451..f8fde5a0 100644 --- a/src/components/Author/Card.tsx +++ b/src/components/Author/Card.tsx @@ -25,7 +25,7 @@ export const AuthorCard = (props: AuthorCardProps) => { const subscribed = createMemo( () => !!session() - ?.info?.authors?.filter((u) => u === props.author.slug) + ?.news?.authors?.filter((u) => u === props.author.slug) .pop() ) const canFollow = createMemo(() => !props.hideFollow && session()?.user?.slug !== props.author.slug)