Skip to content

Commit

Permalink
[AMB-312] Fix warn (#73)
Browse files Browse the repository at this point in the history
* style: update landing page assets

* style: adjust scale

* fix: show warning logic
  • Loading branch information
secondl1ght authored Sep 19, 2024
1 parent aaa442c commit b8aba42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/views/dashboard/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ const Warning: FC<{ id: string }> = ({ id }) => {

const showAlert = useMemo(() => {
const otherAssets = liquidAssets.filter(
a => a.asset_info.ticker !== 'BTC' && !!a.balance
a => a.asset_info.ticker !== 'BTC' && Number(a.balance)
);

const btcAsset = liquidAssets.filter(
a => a.asset_info.ticker == 'BTC' && !!a.balance
a => a.asset_info.ticker == 'BTC' && Number(a.balance)
);

return !!otherAssets.length && !btcAsset.length;
return otherAssets.length && !btcAsset.length;
}, [liquidAssets]);

if (loading || error) return null;
Expand Down

0 comments on commit b8aba42

Please sign in to comment.