Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: 🐛 Fix infinit refresh bugs (#10943)
<!-- 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 modifies the `useUserVoteGauges` hook in the `apps/web/src/views/GaugesVoting/hooks/useUserVoteGauges.ts` file, focusing on the handling of the `publicClient` and the structure of the returned data. ### Detailed summary - Reverted the import of `publicClient` to its original form. - Changed the `initialData` property in the query options to an empty array. - Updated the return statement to directly return `data` instead of using a fallback to an empty array. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
- Loading branch information