From 7eecb0232c6a4bcc70cd15cc79232e88b8561ed0 Mon Sep 17 00:00:00 2001 From: Tom Jeatt Date: Wed, 27 Sep 2023 11:22:25 +0100 Subject: [PATCH] wip: hardcode value to run against market data api --- src/hooks/api/use-get-prices.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hooks/api/use-get-prices.tsx b/src/hooks/api/use-get-prices.tsx index 8cacd07989..2d64d82583 100644 --- a/src/hooks/api/use-get-prices.tsx +++ b/src/hooks/api/use-get-prices.tsx @@ -14,7 +14,8 @@ import { useGetCurrencies } from './use-get-currencies'; // MEMO: Returns `undefined` for currencies without coingecko ID. const getCoingeckoId = (currency: CurrencyExt) => { if (isForeignAsset(currency)) { - return currency.foreignAsset.coingeckoId; + // This is a temporary fix + return currency.foreignAsset.coingeckoId || 'voucher-dot'; } return COINGECKO_ID_BY_CURRENCY_TICKER[currency.ticker]; };