vue-cryptoicon icon indicating copy to clipboard operation
vue-cryptoicon copied to clipboard

How to check if an icon exists?

Open ribrewguy opened this issue 3 years ago • 1 comments

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.

ribrewguy avatar May 12 '21 18:05 ribrewguy

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

dcolley avatar Oct 20 '21 08:10 dcolley