Default sort to best

This commit is contained in:
Ian Philips 2022-10-06 09:53:55 -04:00
parent 25ef17498a
commit e127f9646a

View File

@ -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()),
})