From 9e924b2939e62bcec99030a9f0c8c5ccce5ab74f Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Mon, 20 Nov 2023 22:45:18 +0200 Subject: [PATCH] Fix wrong pending plus tiers showing --- app/features/leaderboards/routes/leaderboards.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/features/leaderboards/routes/leaderboards.tsx b/app/features/leaderboards/routes/leaderboards.tsx index 2fc854add..e12dfc4a2 100644 --- a/app/features/leaderboards/routes/leaderboards.tsx +++ b/app/features/leaderboards/routes/leaderboards.tsx @@ -116,7 +116,7 @@ export const loader = async ({ request }: LoaderArgs) => { const withTiers = addTiers(leaderboard, season); const shouldAddPendingPlusTier = - season === currentOrPreviousSeason(new Date())?.nth && + season === currentSeason(new Date())?.nth && leaderboard.length >= USER_LEADERBOARD_MIN_ENTRIES_FOR_LEVIATHAN; const withPendingPlusTiers = shouldAddPendingPlusTier ? addPendingPlusTiers(withTiers)