fix(trading): asset balance being rendered when disconnected from eth… (#3618)

This commit is contained in:
Art 2023-05-05 13:00:15 +02:00 committed by GitHub
parent bf63f9d46d
commit cf0c45aaa5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -260,7 +260,9 @@ export const DepositForm = ({
<AssetOption
asset={asset}
key={asset.id}
balance={<AssetBalance asset={asset} />}
balance={
isActive && account && <AssetBalance asset={asset} />
}
/>
))}
</RichSelect>