From 4aa62a4b850742d4bd7f9131e9e759dd5ed959cb Mon Sep 17 00:00:00 2001 From: Alejandro Loaiza Date: Fri, 14 Jun 2024 08:29:33 +1000 Subject: [PATCH] fix: CM-664 - Checks value is not null before parse to BigNumber (#1899) --- packages/checkout/sdk/src/balances/balances.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/checkout/sdk/src/balances/balances.ts b/packages/checkout/sdk/src/balances/balances.ts index 837679a090..35d724b25e 100644 --- a/packages/checkout/sdk/src/balances/balances.ts +++ b/packages/checkout/sdk/src/balances/balances.ts @@ -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);