From d2b07dca9d4bb52ed868e51567ecf6ae0084bc44 Mon Sep 17 00:00:00 2001 From: Josh Date: Fri, 2 Jul 2021 12:06:40 -0700 Subject: [PATCH] fix: regression in rewards provider where lowestFetched is off by one (#18392) --- explorer/src/providers/accounts/rewards.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/explorer/src/providers/accounts/rewards.tsx b/explorer/src/providers/accounts/rewards.tsx index 32fc4a0078..7121bf9990 100644 --- a/explorer/src/providers/accounts/rewards.tsx +++ b/explorer/src/providers/accounts/rewards.tsx @@ -137,7 +137,7 @@ async function fetchRewards( } const results = await Promise.all(requests); - const lowestFetchedEpoch = fromEpoch - requests.length; + const lowestFetchedEpoch = fromEpoch - requests.length + 1; dispatch({ type: ActionType.Update,