Skip to content

Commit

Permalink
null price fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bobo-k2 committed Mar 25, 2024
1 parent c274d9b commit 16a068d
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 16a068d

Please sign in to comment.