Skip to content

Commit b36ea70

Browse files
chore: clean up conditional rendering
1 parent dce2b4b commit b36ea70

File tree

1 file changed

+3
-1
lines changed
  • app/components/UI/Tokens/TokenList/PortfolioBalance

1 file changed

+3
-1
lines changed

app/components/UI/Tokens/TokenList/PortfolioBalance/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,16 @@ export const PortfolioBalance = React.memo(() => {
6767
selectedAccountMultichainBalance &&
6868
selectedAccountMultichainBalance.totalFiatBalance === 0;
6969

70+
const shouldShowEmptyState = hasZeroBalance && isHomepageRedesignV1Enabled;
71+
7072
return (
7173
<View style={styles.portfolioBalance}>
7274
<View>
7375
{!selectedAccountMultichainBalance ? (
7476
<View style={styles.loaderWrapper}>
7577
<Loader />
7678
</View>
77-
) : hasZeroBalance && isHomepageRedesignV1Enabled ? (
79+
) : shouldShowEmptyState ? (
7880
<BalanceEmptyState testID="portfolio-balance-empty-state" />
7981
) : (
8082
<TouchableOpacity

0 commit comments

Comments
 (0)