Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Failed to quote if failed to get gauge list (#10809)
<!-- 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 improving error handling in the `safeGetGaugesByChain` function by ensuring that the `getGaugesByChain` call is awaited, which helps in properly managing asynchronous operations. ### Detailed summary - Updated the `safeGetGaugesByChain` function to use `await` with `getGaugesByChain(chainId)`, ensuring the promise resolves before proceeding. - Enhanced error handling by maintaining the existing `try-catch` structure to log errors and return an empty array on failure. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
- Loading branch information