Skip to content

Commit 22e8222

Browse files
committed
fix build
1 parent 7695af0 commit 22e8222

File tree

2 files changed

+28
-25
lines changed

2 files changed

+28
-25
lines changed

apps/dashboard/src/app/(dashboard)/(bridge)/routes/components/server/routelist-card.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ export async function RouteListCard({
9595
</CardHeader>
9696

9797
<CardContent className="px-4 pt-0 pb-4">
98-
{/* table of `chain id` `native token` `managed support`, header row on left value row on right */}
9998
<table className="w-full">
10099
<tbody className="text-sm [&_td>*]:min-h-[25px]">
101100
<tr>

apps/dashboard/src/app/(dashboard)/(bridge)/routes/components/server/routelist-row.tsx

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -84,18 +84,20 @@ export async function RouteListRow({
8484
) : (
8585
<div className="size-6 rounded-full bg-muted-foreground" />
8686
)}
87-
<CopyTextButton
88-
textToCopy={originTokenAddress}
89-
textToShow={
90-
originTokenSymbol === "ETH"
91-
? originChain.nativeCurrency.symbol
92-
: originTokenSymbol
93-
}
94-
tooltip="Copy Token Address"
95-
className="relative z-10 text-base"
96-
variant="ghost"
97-
copyIconPosition="right"
98-
/>
87+
{originTokenSymbol && (
88+
<CopyTextButton
89+
textToCopy={originTokenAddress}
90+
textToShow={
91+
originTokenSymbol === "ETH"
92+
? originChain.nativeCurrency.symbol
93+
: originTokenSymbol
94+
}
95+
tooltip="Copy Token Address"
96+
className="relative z-10 text-base"
97+
variant="ghost"
98+
copyIconPosition="right"
99+
/>
100+
)}
99101
</div>
100102
</div>
101103
</TableCell>
@@ -116,18 +118,20 @@ export async function RouteListRow({
116118
) : (
117119
<div className="size-6 rounded-full bg-muted-foreground" />
118120
)}
119-
<CopyTextButton
120-
textToCopy={destinationTokenAddress}
121-
textToShow={
122-
destinationTokenSymbol === "ETH"
123-
? destinationChain.nativeCurrency.symbol
124-
: destinationTokenSymbol
125-
}
126-
tooltip="Copy Token Address"
127-
className="relative z-10 text-base"
128-
variant="ghost"
129-
copyIconPosition="right"
130-
/>
121+
{destinationTokenSymbol && (
122+
<CopyTextButton
123+
textToCopy={destinationTokenAddress}
124+
textToShow={
125+
destinationTokenSymbol === "ETH"
126+
? destinationChain.nativeCurrency.symbol
127+
: destinationTokenSymbol
128+
}
129+
tooltip="Copy Token Address"
130+
className="relative z-10 text-base"
131+
variant="ghost"
132+
copyIconPosition="right"
133+
/>
134+
)}
131135
</div>
132136
</div>
133137
</TableCell>

0 commit comments

Comments
 (0)