From be4def49a202e245b4afa431d3b75bb08d647973 Mon Sep 17 00:00:00 2001 From: Marshall Polaris Date: Tue, 20 Sep 2022 15:53:35 -0700 Subject: [PATCH] Kill counts of comments and trades on contract page (#900) --- web/components/contract/contract-tabs.tsx | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/web/components/contract/contract-tabs.tsx b/web/components/contract/contract-tabs.tsx index e3153dbb..a9953bbe 100644 --- a/web/components/contract/contract-tabs.tsx +++ b/web/components/contract/contract-tabs.tsx @@ -47,9 +47,7 @@ export function ContractTabs(props: { l.amount > 0 ) - // Load comments here, so the badge count will be correct - const updatedComments = useComments(contract.id) - const comments = updatedComments ?? props.comments + const comments = useComments(contract.id) ?? props.comments const betActivity = lps != null && (