From 87fed2418cb6d2c087a00b456f9a0b2cc1d20a05 Mon Sep 17 00:00:00 2001 From: Usame Algan Date: Mon, 5 Feb 2024 10:04:32 +0100 Subject: [PATCH] fix: useLoadBalance check for undefined value --- src/features/counterfactual/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/counterfactual/utils.ts b/src/features/counterfactual/utils.ts index 0430b54f01..b5f60e4cdb 100644 --- a/src/features/counterfactual/utils.ts +++ b/src/features/counterfactual/utils.ts @@ -36,7 +36,7 @@ export const getUndeployedSafeInfo = (undeployedSafe: PredictedSafeProps, addres export const getCounterfactualBalance = async (safeAddress: string, provider?: BrowserProvider, chain?: ChainInfo) => { const balance = await provider?.getBalance(safeAddress) - if (!balance || !chain) return + if (balance === undefined || !chain) return return { fiatTotal: '0',