-
-
Notifications
You must be signed in to change notification settings - Fork 347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🔧 getProcessMetadata (useNft) #6378
🔧 getProcessMetadata (useNft) #6378
Conversation
✅ Deploy Preview for koda-canary ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
AI-Generated Summary: This pull request includes changes made to the 'getProcessMetadata' function in the 'useNft.ts' file. The main alteration involves the refactoring of how 'hasEmptyNftAttributes' and metadata attributes are handled within the function. Instead of directly accessing 'nft.meta.attributes', a new constant 'attr' has been introduced. This constant checks for the existence of 'nft.meta.attributes' or defaults to an empty array. Consequently, 'hasEmptyNftAttributes' and the return value of getAttributes now utilize 'attr' resulting in more concise and safe code. |
Reviewpad Report
|
Code Climate has analyzed commit 1e4c54a and detected 1 issue on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ code lgtm
Thank you for your contribution to the KodaDot - One Stop Shop for Polkadot NFTs.
👇 __ Let's make a quick check before the contribution.
PR Type