Skip to content

Commit

Permalink
fix: useLoadBalance check for undefined value
Browse files Browse the repository at this point in the history
  • Loading branch information
usame-algan committed Feb 5, 2024
1 parent e4d6fe7 commit ca1af16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/counterfactual/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 <SafeBalanceResponse>{
fiatTotal: '0',
Expand Down

0 comments on commit ca1af16

Please sign in to comment.