diff --git a/src/components/Pages/AuthorPage.tsx b/src/components/Pages/AuthorPage.tsx index 2006c8a2..556fbea3 100644 --- a/src/components/Pages/AuthorPage.tsx +++ b/src/components/Pages/AuthorPage.tsx @@ -38,7 +38,7 @@ export const AuthorPage = (props: PageProps) => { return ( }> - + ) diff --git a/src/components/Views/Author.tsx b/src/components/Views/Author.tsx index 59f4ab3f..94635d88 100644 --- a/src/components/Views/Author.tsx +++ b/src/components/Views/Author.tsx @@ -17,6 +17,7 @@ import { splitToPages } from '../../utils/splitToPages' type AuthorProps = { shouts: Shout[] author: Author + authorSlug: string // FIXME author topics from server // topics: Topic[] } @@ -36,7 +37,7 @@ export const AuthorView = (props: AuthorProps) => { const { topicsByAuthor } = useTopicsStore() const [isLoadMoreButtonVisible, setIsLoadMoreButtonVisible] = createSignal(false) - const author = createMemo(() => authorEntities()[props.author.slug]) + const author = createMemo(() => authorEntities()[props.authorSlug]) const { searchParams, changeSearchParam } = useRouter() const loadMore = async () => {