-
Notifications
You must be signed in to change notification settings - Fork 13
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(wallet-dashboard): other assets #4574
base: develop
Are you sure you want to change the base?
Conversation
This pull request has been deployed to Vercel. Latest commit: f62f401 ✅ Preview: https://wallet-dashboard-bjjykixrs-iota1.vercel.app |
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.
just a nit about code optimization and reverting code added in previous PR
const visualAssets: IotaObjectData[] = []; | ||
const otherAssets: IotaObjectData[] = []; |
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.
we simplified this code by removing visualAssets
and otherAssets
based on the comment in this PR > #4038 (comment)
with this PR we would be reverting back the changes
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.
That code was incorrect because the objects were always pushed to assets array
if (selectedCategory == AssetCategory.Visual) { if(hasDisplayData(asset)) { assets.push(asset.data); } } else if(selectedCategory == AssetCategory.Other) { assets.push(asset.data); }
I have added a Map to simplify the code, but also to be able to separate it into the 2 categories, take a look and tell me what you think
This pull request has been deployed to Vercel. Latest commit: 9b816ec ✅ Preview: https://wallet-dashboard-4gkgpiyw7-iota1.vercel.app |
Description of change
Other assets in the dashboard should not contain Coins nor NFTs, it contains at least coins for now
Other assets should just open a new tab in the explorer
Links to any relevant issues
Closes #4572
Type of change
Choose a type of change, and delete any options that are not relevant.
How the change has been tested
Describe the tests that you ran to verify your changes.
Make sure to provide instructions for the maintainer as well as any relevant configurations.
Change checklist
Tick the boxes that are relevant to your changes, and delete any items that are not.