From fd31b7eaca20c8cb049600e229cc400b8f1c3c35 Mon Sep 17 00:00:00 2001 From: mantikoros Date: Sun, 2 Oct 2022 12:50:49 -0500 Subject: [PATCH] set comment sort default to newest --- web/components/contract/contract-tabs.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/components/contract/contract-tabs.tsx b/web/components/contract/contract-tabs.tsx index 5a4efb94..1a67d86a 100644 --- a/web/components/contract/contract-tabs.tsx +++ b/web/components/contract/contract-tabs.tsx @@ -75,7 +75,7 @@ const CommentsTabContent = memo(function CommentsTabContent(props: { const { contract } = props const tips = useTipTxns({ contractId: contract.id }) const comments = useComments(contract.id) ?? props.comments - const [sort, setSort] = useState<'Newest' | 'Best'>('Best') + const [sort, setSort] = useState<'Newest' | 'Best'>('Newest') const me = useUser() if (comments == null) { return