Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: mev toggle display logic (#11061)
<!-- 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 `useShouldShowMEVToggle` hook by adding a check for the `chainId` to ensure that the MEV toggle is only shown when the user is connected to the Binance Smart Chain (BSC). ### Detailed summary - Added `chainId` to the destructured return of `useActiveWeb3React()`. - Updated the return condition to include a check for `chainId === ChainId.BSC`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
- Loading branch information