Remove todos

This commit is contained in:
Eric Bailey
2025-06-06 16:39:48 -05:00
parent 2c46fb6520
commit 03a6ea1f38
2 changed files with 5 additions and 2 deletions
+5 -1
View File
@@ -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(
-1
View File
@@ -130,7 +130,6 @@ export function getThreadPostUI({
precedesChildReadMore,
followsReadMoreUp,
}: TraversalMetadata): Extract<ThreadItem, {type: 'threadPost'}>['ui'] {
// TODO might be able to simplify this
const isReplyAndHasReplies =
depth > 0 &&
repliesCount > 0 &&