From 3aa04f278ba996b2fe28c7842cb0b6a9291ee3c9 Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Mon, 27 Jan 2020 14:38:08 -0500 Subject: [PATCH] fix: fix hack on New + following/tags page Would never hit the 2nd condition. --- ui/component/claimListDiscover/view.jsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ui/component/claimListDiscover/view.jsx b/ui/component/claimListDiscover/view.jsx index 36b762a9d..fb80b16d7 100644 --- a/ui/component/claimListDiscover/view.jsx +++ b/ui/component/claimListDiscover/view.jsx @@ -116,20 +116,20 @@ function ClaimListDiscover(props: Props) { // For more than 20, drop it down to 6 months // This helps with timeout issues for users that are following a ton of stuff // https://github.com/lbryio/lbry-sdk/issues/2420 - if (options.channel_ids.length > 10 || options.any_tags.length > 10) { - options.release_time = `>${Math.floor( - moment() - .subtract(1, TIME_YEAR) - .startOf('week') - .unix() - )}`; - } else if (options.channel_ids.length > 20 || options.any_tags.length > 20) { + if (options.channel_ids.length > 20 || options.any_tags.length > 20) { options.release_time = `>${Math.floor( moment() .subtract(6, TIME_MONTH) .startOf('week') .unix() )}`; + } else if (options.channel_ids.length > 10 || options.any_tags.length > 10) { + options.release_time = `>${Math.floor( + moment() + .subtract(1, TIME_YEAR) + .startOf('week') + .unix() + )}`; } }