Skip to content

Commit

Permalink
fix: CM-664 - Checks value is not null before parse to BigNumber (#1899)
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoloaiza authored Jun 13, 2024
1 parent 65c38b3 commit 4aa62a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/checkout/sdk/src/balances/balances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ export const getIndexerBalance = async (

const tokenData = item.token || {};

if (item.value == null) return;
const balance = BigNumber.from(item.value);

let decimals = parseInt(tokenData.decimals, 10);
Expand Down

0 comments on commit 4aa62a4

Please sign in to comment.