Skip to content

Commit e862f8a

Browse files
committed
Always show dropdown
1 parent 8918b95 commit e862f8a

1 file changed

Lines changed: 7 additions & 15 deletions

File tree

client/src/components/PortfolioCard.tsx

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -59,28 +59,20 @@ export function PortfolioCard() {
5959
<TableBody>
6060
{balances.data?.tokens.map((token) => {
6161
const isExpanded = expandedRows.has(token.id)
62-
const hasMultipleAccounts =
63-
token.accountBreakdown && token.accountBreakdown.length > 1
6462

6563
return (
6664
<>
6765
<TableRow
6866
key={token.id}
69-
className={hasMultipleAccounts ? 'cursor-pointer' : ''}
70-
onClick={
71-
hasMultipleAccounts
72-
? () => toggleRow(token.id)
73-
: undefined
74-
}
67+
className="cursor-pointer"
68+
onClick={() => toggleRow(token.id)}
7569
>
7670
<TableCell>
77-
{hasMultipleAccounts && (
78-
<ChevronDownIcon
79-
className={`h-4 w-4 transition-transform ${
80-
isExpanded ? 'rotate-180' : ''
81-
}`}
82-
/>
83-
)}
71+
<ChevronDownIcon
72+
className={`h-4 w-4 transition-transform ${
73+
isExpanded ? 'rotate-180' : ''
74+
}`}
75+
/>
8476
</TableCell>
8577
<TableCell>{token.chain.name}</TableCell>
8678
<TableCell title={token.symbol}>{token.name} </TableCell>

0 commit comments

Comments
 (0)