Closed nikhilverma360 closed 1 month ago
The change involves updating the EnsureChain.tsx
component to use the useAccount
hook from "wagmi" instead of the useChainId
hook. This affects how the chain ID is retrieved within the component, aligning it with the updated method of accessing account-related information.
Files | Change Summary |
---|---|
web/src/components/.../EnsureChain.tsx |
Replaced useChainId with useAccount for chain ID retrieval. |
In code's vast meadow, changes bloom anew,
A rabbit swaps hooks, the chain flows through.
FromuseChainId
touseAccount
's call,
Enhancing our app, standing proud and tall.
Hopping through fields of logic and rhyme,
Our code grows stronger, one line at a time.
🌷🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Name | Link |
---|---|
Latest commit | b3e8d7b9eb87a0fec79bc42ee9e30aad4101d377 |
Latest deploy log | https://app.netlify.com/sites/kleros-v2/deploys/667a9a444dad6c00084ad7cd |
Deploy Preview | https://deploy-preview-1626--kleros-v2.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Name | Link |
---|---|
Latest commit | b3e8d7b9eb87a0fec79bc42ee9e30aad4101d377 |
Latest deploy log | https://app.netlify.com/sites/kleros-v2-neo/deploys/667a9a446270e100083b70b5 |
Deploy Preview | https://deploy-preview-1626--kleros-v2-neo.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Name | Link |
---|---|
Latest commit | |
Latest deploy log | https://app.netlify.com/sites/kleros-v2-university/deploys/667ad74ef55779108c58ced3 |
Deploy Preview | https://deploy-preview-1626--kleros-v2-university.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Code Climate has analyzed commit b3e8d7b9 and detected 0 issues on this pull request.
View more on Code Climate.
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
<EnsureChain>
in court v2 we are usinghere, if user is not connected then it will show children.. I made it to show connect wallet button to be consistent with other v2 apps which show ConnectWallet. (below code is from Curate v2)
PR-Codex overview
The focus of this PR is to replace the usage of
useChainId
withuseAccount
in theEnsureChain
component.Detailed summary
useChainId
with object destructuring forchainId
fromuseAccount
inEnsureChain
component.Summary by CodeRabbit
useAccount
hook. This change enhances the accuracy of the displayed chain ID in the app.