diff --git a/web/hooks/use-sort-and-query-params.tsx b/web/hooks/use-sort-and-query-params.tsx index f63fbcc0..c7e7336d 100644 --- a/web/hooks/use-sort-and-query-params.tsx +++ b/web/hooks/use-sort-and-query-params.tsx @@ -35,7 +35,7 @@ export function useQueryAndSortParams(options?: { defaultSort: Sort }) { } return { - sort: sort ?? options?.defaultSort ?? 'creator', + sort: sort ?? options?.defaultSort ?? '24-hour-vol', query: query ?? '', setSort, setQuery, diff --git a/web/pages/fold/[...slugs]/index.tsx b/web/pages/fold/[...slugs]/index.tsx index f43f847a..b086efe6 100644 --- a/web/pages/fold/[...slugs]/index.tsx +++ b/web/pages/fold/[...slugs]/index.tsx @@ -158,9 +158,7 @@ export default function FoldPage(props: { const fold = useFold(props.fold?.id) ?? props.fold - const { query, setQuery, sort, setSort } = useQueryAndSortParams({ - defaultSort: 'most-traded', - }) + const { query, setQuery, sort, setSort } = useQueryAndSortParams() const user = useUser() const isCurator = user && fold && user.id === fold.curatorId diff --git a/web/pages/markets.tsx b/web/pages/markets.tsx index d6b4f9bf..5d9742e1 100644 --- a/web/pages/markets.tsx +++ b/web/pages/markets.tsx @@ -21,9 +21,7 @@ export async function getStaticProps() { export default function Markets(props: { contracts: Contract[] }) { const contracts = useContracts() ?? props.contracts ?? [] - const { query, setQuery, sort, setSort } = useQueryAndSortParams({ - defaultSort: '24-hour-vol', - }) + const { query, setQuery, sort, setSort } = useQueryAndSortParams() return ( diff --git a/web/pages/tag/[tag].tsx b/web/pages/tag/[tag].tsx index baa87300..2ea1143d 100644 --- a/web/pages/tag/[tag].tsx +++ b/web/pages/tag/[tag].tsx @@ -31,9 +31,7 @@ export default function TagPage(props: { contracts: Contract[] }) { contract.lowercaseTags.includes(tag.toLowerCase()) ) - const { query, setQuery, sort, setSort } = useQueryAndSortParams({ - defaultSort: 'most-traded', - }) + const { query, setQuery, sort, setSort } = useQueryAndSortParams() return (