Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Crash bcake migration page with unsupported chain (#10726)
<!-- 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 refactors the `PosManagerMigrationFarmTable` component in `PositionManagerTable.tsx`, optimizing the logic for generating the rows and simplifying the handling of onStake and onUnStake functions. ### Detailed summary - Introduced `noop` from `lodash` for `onStake` and `onUnStake` functions. - Changed the logic for generating `needToMigrateList` to use optional chaining and a default empty array. - Updated the `rows` mapping to directly return objects with structured data. - Removed conditional rendering based on `columnSchema` for the row mapping. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
- Loading branch information