Skip to content

Commit

Permalink
fix(L1): AND-0000 remove layer one filtering for trading/universal (#…
Browse files Browse the repository at this point in the history
…4063)
  • Loading branch information
dserrano-bc committed Nov 3, 2022
1 parent d6391c6 commit 9465441
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -190,7 +190,6 @@ data class DashboardState(
* - Display all L1 non-custodial coins regardless of balance
* - Honour the Dust hiding setting (balance <$0.01)
* - When in Brokerage or Universal:
* - Display all L1 assets regardless of balance
* - For other assets - show accounts with balances
* - Honour the Dust hiding setting (balance <$0.01)
*/
Expand All @@ -201,7 +200,7 @@ data class DashboardState(
it.currency.isLayer1Asset() || it.shouldAssetShow
}
if (activeAssets.all { it.value is BrokerageDashboardAsset }) return activeAssets.values.filter {
it.currency.isLayer1Asset() || (it.accountBalance?.total?.isPositive ?: false && it.shouldAssetShow)
it.accountBalance?.total?.isPositive ?: false && it.shouldAssetShow
}
throw IllegalStateException("State is not valid ${activeAssets.values.map { it.currency }}")
}
Expand Down

0 comments on commit 9465441

Please sign in to comment.