@@ -108,41 +108,49 @@ function LaneDetailsHero({
108108 </ div >
109109
110110 < div className = "lane-details-hero__details" >
111- < DetailItem
112- label = "OnRamp address"
113- clipboardType = "onramp"
114- tooltip = { sourceNetwork . chainType === "solana" ? < StyledTooltip tip = "Same as Router." /> : undefined }
115- >
116- < AddressComponent
117- address = { onRamp }
118- endLength = { 6 }
119- contractUrl = { getExplorerAddressUrl ( explorer , sourceNetwork . chainType ) ( onRamp ) }
120- />
121- </ DetailItem >
111+ { onRamp && (
112+ < DetailItem
113+ label = "OnRamp address"
114+ clipboardType = "onramp"
115+ tooltip = { sourceNetwork . chainType === "solana" ? < StyledTooltip tip = "Same as Router." /> : undefined }
116+ >
117+ < AddressComponent
118+ address = { onRamp }
119+ endLength = { 6 }
120+ contractUrl = { getExplorerAddressUrl ( explorer , sourceNetwork . chainType ) ( onRamp ) }
121+ />
122+ </ DetailItem >
123+ ) }
122124
123- < DetailItem label = "OffRamp address" clipboardType = "offramp" >
124- < AddressComponent
125- address = { offRamp }
126- endLength = { 6 }
127- contractUrl = { getExplorerAddressUrl ( explorer , destinationNetwork . chainType ) ( offRamp ) }
128- />
129- </ DetailItem >
125+ { offRamp && (
126+ < DetailItem label = "OffRamp address" clipboardType = "offramp" >
127+ < AddressComponent
128+ address = { offRamp }
129+ endLength = { 6 }
130+ contractUrl = { getExplorerAddressUrl ( explorer , destinationNetwork . chainType ) ( offRamp ) }
131+ />
132+ </ DetailItem >
133+ ) }
130134
131- < DetailItem
132- label = "Source chain selector"
133- clipboardType = "source-chain-selector"
134- tooltip = { < StyledTooltip tip = "Unique identifier for the source blockchain network." /> }
135- >
136- { sourceAddress ? < CopyValue value = { sourceAddress } /> : "n/a" }
137- </ DetailItem >
135+ { sourceAddress && (
136+ < DetailItem
137+ label = "Source chain selector"
138+ clipboardType = "source-chain-selector"
139+ tooltip = { < StyledTooltip tip = "Unique identifier for the source blockchain network." /> }
140+ >
141+ < CopyValue value = { sourceAddress } />
142+ </ DetailItem >
143+ ) }
138144
139- < DetailItem
140- label = "Destination chain selector"
141- clipboardType = "destination-chain-selector"
142- tooltip = { < StyledTooltip tip = "Unique identifier for the destination blockchain network." /> }
143- >
144- { destinationAddress ? < CopyValue value = { destinationAddress } /> : "n/a" }
145- </ DetailItem >
145+ { destinationAddress && (
146+ < DetailItem
147+ label = "Destination chain selector"
148+ clipboardType = "destination-chain-selector"
149+ tooltip = { < StyledTooltip tip = "Unique identifier for the destination blockchain network." /> }
150+ >
151+ < CopyValue value = { destinationAddress } />
152+ </ DetailItem >
153+ ) }
146154 </ div >
147155 </ div >
148156 )
0 commit comments