DanielJSottile / poketeams-client

PokéTeams: The Future of Saving Pokemon Showdown Teams
https://poketeams.now.sh
1 stars 0 forks source link

Pagination beyond exactly divisible by 10 Pokemon breaks. #125

Open DanielJSottile opened 3 years ago

DanielJSottile commented 3 years ago

If the user paginates beyond the amount of possible results, it breaks the page and forces the user to refresh.

DanielJSottile commented 3 years ago

It now prevents pagination when there's less than 10 teams. But this bug is still present for if theres exactly 10 teams on the page, but no more left to grab. The fix I created is only temporary, but the logic should be similar.