vue-cryptoicon
vue-cryptoicon copied to clipboard
How to check if an icon exists?
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.
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.