set comment sort default to newest

This commit is contained in:
mantikoros 2022-10-02 12:50:49 -05:00
parent 1d645e5ff8
commit fd31b7eaca

View File

@ -75,7 +75,7 @@ const CommentsTabContent = memo(function CommentsTabContent(props: {
const { contract } = props const { contract } = props
const tips = useTipTxns({ contractId: contract.id }) const tips = useTipTxns({ contractId: contract.id })
const comments = useComments(contract.id) ?? props.comments const comments = useComments(contract.id) ?? props.comments
const [sort, setSort] = useState<'Newest' | 'Best'>('Best') const [sort, setSort] = useState<'Newest' | 'Best'>('Newest')
const me = useUser() const me = useUser()
if (comments == null) { if (comments == null) {
return <LoadingIndicator /> return <LoadingIndicator />