From 999cb7c32089c8f3a7439879bbcb59672c1f9dba Mon Sep 17 00:00:00 2001 From: Bobo Date: Tue, 7 May 2024 11:42:20 +0200 Subject: [PATCH] null price fix (#147) --- src/services/CoinGeckoPriceProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/CoinGeckoPriceProvider.ts b/src/services/CoinGeckoPriceProvider.ts index b8729a0..be7ec66 100644 --- a/src/services/CoinGeckoPriceProvider.ts +++ b/src/services/CoinGeckoPriceProvider.ts @@ -23,7 +23,7 @@ export class CoinGeckoPriceProvider implements IPriceProvider { if (result.data[tokenSymbol]) { const price = result.data[tokenSymbol][currency]; - return Number(price); + return Number(price ?? 0); } }