From 03a6ea1f3833d5696f16e25e0c05685af35cfb5d Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Fri, 6 Jun 2025 16:39:48 -0500 Subject: [PATCH] Remove todos --- src/state/queries/usePostThread/index.ts | 6 +++++- src/state/queries/usePostThread/utils.ts | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/state/queries/usePostThread/index.ts b/src/state/queries/usePostThread/index.ts index 4bf296ddc6..09ec354629 100644 --- a/src/state/queries/usePostThread/index.ts +++ b/src/state/queries/usePostThread/index.ts @@ -170,7 +170,11 @@ export function usePostThread({anchor}: {anchor?: string}) { }), ) } else if (additionalItemsQuery.isError) { - // TODO could insert error component + /* + * We could insert an special error component in here, but since these + * are optional additional replies, it's not critical that they're shown + * atm. + */ return [] } else if (additionalItemsQuery.data?.thread) { const {threadItems} = sortAndAnnotateThreadItems( diff --git a/src/state/queries/usePostThread/utils.ts b/src/state/queries/usePostThread/utils.ts index f309be3e50..2c597075b6 100644 --- a/src/state/queries/usePostThread/utils.ts +++ b/src/state/queries/usePostThread/utils.ts @@ -130,7 +130,6 @@ export function getThreadPostUI({ precedesChildReadMore, followsReadMoreUp, }: TraversalMetadata): Extract['ui'] { - // TODO might be able to simplify this const isReplyAndHasReplies = depth > 0 && repliesCount > 0 &&