Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: wrong api query implement (#10862)
<!-- 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 updates the handling of farm configurations in two API endpoints by switching the order of farm configuration constants used, ensuring that the testnet farms are prioritized correctly. ### Detailed summary - In `apps/web/src/pages/api/configs/farms/v2/index.ts`: - Changed the order of `farmConfig` assignment to prioritize `UNIVERSAL_FARMS_WITH_TESTNET` over `UNIVERSAL_FARMS`. - In `apps/web/src/pages/api/configs/farms/v2/[chain].ts`: - Updated `farmConfig` to filter `UNIVERSAL_FARMS_WITH_TESTNET` instead of `UNIVERSAL_FARMS`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
- Loading branch information