-
-
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
Fix nft details in carousel #4413
Conversation
SUCCESS @shashkovdanil PR for issue #4169 which is assigned to you. Please wait for review and don't hesitate to grab another issue in the meantime! |
✅ Deploy Preview for koda-nuxt ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
I would check here? |
Yep, that's it. I would look at it myself, but I'm afraid I don't have enough experience to figure it out on my own in a normal amount of time. |
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.
Here's the issue category breakdown:
Category Count
Complexity 1
Could you find a way to reduce numbers of line for formatNFT
method?
@roiLeo think I can, but it will make the code unreadable. GitHub shows that I made many changes because I wrapped if (metaImage === null) {
const cachedMeta = await get(nft.metadata)
const meta = !isEmpty(cachedMeta)
? cachedMeta
: await fetchNFTMetadata(
nft,
getSanitizer(nft.metadata, 'pinata', 'permafrost')
)
const imageSanitizer = getSanitizer(meta.image, 'pinata')
return {
...result,
name: meta.name,
image: imageSanitizer(meta.image),
animation_url: sanitizeIpfsUrl(
meta.animation_url || meta.image,
'pinata'
),
}
} |
@roiLeo any updates? |
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.
set in idb new meta val if present
missing setter for idb storage
if (!cachedMeta) {
set(nft.metadata, meta)
}
Done |
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.
rest looks good to me
Code Climate has analyzed commit 9a32d0f and detected 0 issues on this pull request. 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
Can it be merged? |
It need 2nd approval to merge this, Team is currently busy with ongoing event. |
pay 60 usd
Yes, we are again in Lisbon. |
😍 Perfect, I’ve sent the payout 🪅 Let’s grab another issue and get rewarded! |
Important!
This fix works well, but it's temporary. The backend developers need to figure out why the metadata is empty for some NFTs.
PR Type
Bugfix
Context
Had issue bounty label?
Screenshot 📸
https://monosnap.com/file/jNQh60q7PLkfXgzjKY3JPLiPF5Zsjb