From e127f9646a08b6cf593018c738ecf9242626b075 Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Thu, 6 Oct 2022 09:53:55 -0400 Subject: [PATCH] Default sort to best --- 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 9639a57a..9ce17396 100644 --- a/web/components/contract/contract-tabs.tsx +++ b/web/components/contract/contract-tabs.tsx @@ -80,7 +80,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] = usePersistentState<'Newest' | 'Best'>('Newest', { + const [sort, setSort] = usePersistentState<'Newest' | 'Best'>('Best', { key: `contract-${contract.id}-comments-sort`, store: storageStore(safeLocalStorage()), })