diff --git a/package.json b/package.json index 785822f..5a5ab15 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@zero-tech/zapp-daos", - "version": "0.18.5", + "version": "0.18.6", "main": "dist/index.js", "repository": "git@github.com:zer0-os/zApp-DAOs.git", "scripts": { diff --git a/src/lib/hooks/queries/useDaoAssetsCoins.ts b/src/lib/hooks/queries/useDaoAssetsCoins.ts index 75cc371..6306b5f 100644 --- a/src/lib/hooks/queries/useDaoAssetsCoins.ts +++ b/src/lib/hooks/queries/useDaoAssetsCoins.ts @@ -14,13 +14,14 @@ export const useDaoAssetsCoins = (zna?: string) => { ['dao', 'assets', 'coins', { zna }], async () => { const response = await fetch( - `${safeUrl}/api/v1/safes/${dao.safeAddress}/balances/usd/?trusted=true&exclude_spam=true`, + `${safeUrl}/api/v1/safes/${dao.safeAddress}/balances/?trusted=true&exclude_spam=true`, ); const data = await response.json(); try { - if (!Number(data[0].fiatBalance ?? 1)) { + const hasFiatBalance = !!data[0]?.fiatBalance; + if (!hasFiatBalance) { const symbols = data.map((d) => { if (!d.token) return 'eth';