fix invite page crashing on large screen

This commit is contained in:
Sean Yesmunt 2020-10-05 13:44:21 -04:00
parent 489a4855e9
commit 2abd1ca6c2

View file

@ -131,8 +131,7 @@ function ClaimListDiscover(props: Props) {
const channelIdsParam = channelIdsInUrl ? channelIdsInUrl.split(',') : channelIds;
const feeAmountParam = urlParams.get('fee_amount') || feeAmount || CS.FEE_AMOUNT_ANY;
const originalPageSize = pageSize || CS.PAGE_SIZE;
const dynamicPageSize = isLargeScreen ? originalPageSize * (3 / 2) : originalPageSize;
const dynamicPageSize = isLargeScreen ? Math.ceil(originalPageSize * (3 / 2)) : originalPageSize;
let orderParam = orderBy || urlParams.get(CS.ORDER_BY_KEY) || defaultOrderBy;
if (!orderParam) {
if (history.action === 'POP') {