You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!--
Before opening a pull request, please read the [contributing
guidelines](https://github.com/pancakeswap/pancake-frontend/blob/develop/CONTRIBUTING.md)
first
-->
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on enhancing the logic for calculating the maximum
number of pages in the `PoolsTable` component by adding a check for
`poolDatas` before performing calculations.
### Detailed summary
- Added a check for `poolDatas` existence before calculating
`extraPages`.
- Moved the `setMaxPage` call inside the conditional block to ensure it
only runs when `poolDatas` is defined.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`
<!-- end pr-codex -->
0 commit comments