Skip to content

Commit

Permalink
update infinite scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
totop716 committed Dec 13, 2021
1 parent e4751ca commit 6ff05a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/DragonPage/DragonPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ const DragonPage: React.FC = () => {
syrupInfos.length < (SYRUP_REWARDS_INFO[chainId]?.length ?? 0) &&
pageIndex * 5 > syrupInfos.length
) {
setPageIndex(syrupInfos.length / 6);
setPageIndex(syrupInfos.length / 5 + 1);
}
if (
!lastSyrupAddress ||
Expand Down
2 changes: 1 addition & 1 deletion src/pages/FarmPage/FarmPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ const FarmPage: React.FC = () => {
stakingInfos.length < (STAKING_REWARDS_INFO[chainId]?.length ?? 0) &&
pageIndex * 6 > stakingInfos.length
) {
setPageIndex(stakingInfos.length / 6);
setPageIndex(stakingInfos.length / 6 + 1);
}
if (
!lastStakingAddress ||
Expand Down

0 comments on commit 6ff05a6

Please sign in to comment.