Skip to content

Commit

Permalink
null price fix (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobo-k2 authored May 7, 2024
1 parent e9b7f5f commit 999cb7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/CoinGeckoPriceProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 999cb7c

Please sign in to comment.