don't default to 'new' on discover page

This commit is contained in:
Sean Yesmunt 2020-11-20 11:46:26 -05:00
parent e15998afe7
commit fe2656cfa9
2 changed files with 1 additions and 1 deletions

View file

@ -151,6 +151,7 @@ function ClaimListDiscover(props: Props) {
const originalPageSize = pageSize || CS.PAGE_SIZE; const originalPageSize = pageSize || CS.PAGE_SIZE;
const dynamicPageSize = isLargeScreen ? Math.ceil(originalPageSize * (3 / 2)) : originalPageSize; const dynamicPageSize = isLargeScreen ? Math.ceil(originalPageSize * (3 / 2)) : originalPageSize;
let orderParam = orderBy || urlParams.get(CS.ORDER_BY_KEY) || defaultOrderBy; let orderParam = orderBy || urlParams.get(CS.ORDER_BY_KEY) || defaultOrderBy;
if (!orderParam) { if (!orderParam) {
if (history.action === 'POP') { if (history.action === 'POP') {
// Reaching here means user have popped back to the page's entry point (e.g. '/$/tags' without any '?order='). // Reaching here means user have popped back to the page's entry point (e.g. '/$/tags' without any '?order=').

View file

@ -99,7 +99,6 @@ function DiscoverPage(props: Props) {
limitClaimsPerChannel={3} limitClaimsPerChannel={3}
header={repostedUri ? <span /> : undefined} header={repostedUri ? <span /> : undefined}
tileLayout={repostedUri ? false : tileLayout} tileLayout={repostedUri ? false : tileLayout}
defaultOrderBy={CS.ORDER_BY_NEW}
claimType={claimType ? [claimType] : undefined} claimType={claimType ? [claimType] : undefined}
headerLabel={headerLabel} headerLabel={headerLabel}
tags={tags} tags={tags}