From f7c33c167a8cd9020ba0062b8d736d6e09332f1e Mon Sep 17 00:00:00 2001 From: Untone Date: Tue, 16 Apr 2024 07:03:05 +0300 Subject: [PATCH] fmt --- src/components/Views/Author/Author.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Views/Author/Author.tsx b/src/components/Views/Author/Author.tsx index 22fdf134..b59c3da1 100644 --- a/src/components/Views/Author/Author.tsx +++ b/src/components/Views/Author/Author.tsx @@ -64,12 +64,12 @@ export const AuthorView = (props: Props) => { }) createEffect(async () => { - if(Object.keys(authorEntities()).includes(props.authorSlug) && !author()?.id) { + if (Object.keys(authorEntities()).includes(props.authorSlug) && !author()?.id) { // use preloaded author const a = authorEntities()[props.authorSlug] setAuthor(a) console.debug('[AuthorView] preloaded author:', a) - } else if(props.authorSlug || (author()?.id && !author().stat)) { + } else if (props.authorSlug || (author()?.id && !author().stat)) { // load author const a = await loadAuthor({ slug: props.authorSlug, author_id: author()?.id }) setAuthor(a)