From c634cd9071305239f8c7d6acf371aca397f2bf2b Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Mon, 23 Jun 2025 17:44:40 +0300 Subject: Upgrade prettier to 3.6 (#8558) * upgrade prettier * run prettier * more files --- src/state/queries/usePostThread/index.ts | 4 ++-- src/state/queries/usePostThread/traversal.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/state/queries/usePostThread') diff --git a/src/state/queries/usePostThread/index.ts b/src/state/queries/usePostThread/index.ts index 782888cfb..8495df04c 100644 --- a/src/state/queries/usePostThread/index.ts +++ b/src/state/queries/usePostThread/index.ts @@ -52,8 +52,8 @@ export function usePostThread({anchor}: {anchor?: string}) { return view === 'linear' ? LINEAR_VIEW_BELOW : isWeb && gtPhone - ? TREE_VIEW_BELOW_DESKTOP - : TREE_VIEW_BELOW + ? TREE_VIEW_BELOW_DESKTOP + : TREE_VIEW_BELOW }, [view, gtPhone]) const postThreadQueryKey = createPostThreadQueryKey({ diff --git a/src/state/queries/usePostThread/traversal.ts b/src/state/queries/usePostThread/traversal.ts index 124591125..7d8cd6464 100644 --- a/src/state/queries/usePostThread/traversal.ts +++ b/src/state/queries/usePostThread/traversal.ts @@ -444,7 +444,7 @@ export function buildThread({ const anchorPost = items.at(0) const hasAnchorFromCache = anchorPost && anchorPost.type === 'threadPost' const skeletonReplies = hasAnchorFromCache - ? anchorPost.value.post.replyCount ?? 4 + ? (anchorPost.value.post.replyCount ?? 4) : 4 if (!items.length) { -- cgit 1.4.1