diff --git a/frontend/hooks/useRewardsHistory.ts b/frontend/hooks/useRewardsHistory.ts index e2e8dd96..4a8ee397 100644 --- a/frontend/hooks/useRewardsHistory.ts +++ b/frontend/hooks/useRewardsHistory.ts @@ -270,7 +270,7 @@ export const useRewardsHistory = () => { const previous = earnedCheckpoints[i - 1]; const epochGap = previous.epochStartTimeStamp - current.epochEndTimeStamp; - if (current.earned && epochGap <= Number(current.epochLength)) { + if (current.earned && Number(current.epochLength) > epochGap) { return streakCount + 1; }