From bfeaa8a47b4c69b3d9cfde5e700cda52bc7f2966 Mon Sep 17 00:00:00 2001 From: Ken Vu <97480229+ken-centrality@users.noreply.github.com> Date: Fri, 1 Apr 2022 09:44:59 +1300 Subject: [PATCH] Add a generic missing token (#149) --- assets/tokens/missing.svg | 17 +++++++++++++++++ utils/getTokenLogo.ts | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 assets/tokens/missing.svg diff --git a/assets/tokens/missing.svg b/assets/tokens/missing.svg new file mode 100644 index 00000000..ca9a9515 --- /dev/null +++ b/assets/tokens/missing.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/utils/getTokenLogo.ts b/utils/getTokenLogo.ts index 5ba785a5..c5178ecc 100644 --- a/utils/getTokenLogo.ts +++ b/utils/getTokenLogo.ts @@ -11,5 +11,5 @@ export default function getTokenLogos(symbol: string): { width: number; height: number; } { - return tokenLogos[symbol?.toLowerCase()] || null; + return tokenLogos[symbol?.toLowerCase()] || tokenLogos["missing"]; }