@@ -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