We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dce2b4b commit b36ea70Copy full SHA for b36ea70
app/components/UI/Tokens/TokenList/PortfolioBalance/index.tsx
@@ -67,14 +67,16 @@ export const PortfolioBalance = React.memo(() => {
67
selectedAccountMultichainBalance &&
68
selectedAccountMultichainBalance.totalFiatBalance === 0;
69
70
+ const shouldShowEmptyState = hasZeroBalance && isHomepageRedesignV1Enabled;
71
+
72
return (
73
<View style={styles.portfolioBalance}>
74
<View>
75
{!selectedAccountMultichainBalance ? (
76
<View style={styles.loaderWrapper}>
77
<Loader />
78
</View>
- ) : hasZeroBalance && isHomepageRedesignV1Enabled ? (
79
+ ) : shouldShowEmptyState ? (
80
<BalanceEmptyState testID="portfolio-balance-empty-state" />
81
) : (
82
<TouchableOpacity
0 commit comments