Skip to content

Commit

Permalink
fix: regression in rewards provider where lowestFetched is off by one (
Browse files Browse the repository at this point in the history
  • Loading branch information
oJshua authored Jul 2, 2021
1 parent 7cd6224 commit d2b07dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion explorer/src/providers/accounts/rewards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d2b07dc

Please sign in to comment.