Skip to content
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

How to check if an icon exists? #8

Open
ribrewguy opened this issue May 12, 2021 · 1 comment
Open

How to check if an icon exists? #8

ribrewguy opened this issue May 12, 2021 · 1 comment

Comments

@ribrewguy
Copy link

I'm currently getting a lot of Symbol of the icon is not correct: SOME_ICON error messages. Also, the element takes of space even if nothing is displayed. I'd like to be able to conditionally check if the coin is supported and conditionally render the element.

@dcolley
Copy link

dcolley commented Oct 20, 2021

To pick up the default icon, add generic to <cryptoicon :symbol="token.symbol" generic size="24" />

Here you can see OKB & HBAR picking up the generic icon.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants