File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 22
33## Unreleased (develop)
44
5+ - changed: Append chain names to token codes in RampCreateScene
6+
57## 4.42.0 (staging)
68
79- added: Zcash buy/sell support with Banxa
Original file line number Diff line number Diff line change @@ -138,19 +138,18 @@ export const RampCreateScene: React.FC<Props> = (props: Props) => {
138138 ]
139139 : [ undefined , undefined ]
140140
141- // Append chain name for L2-native assets like Optimism ETH
141+ // Append chain name for tokens and L2-native assets like Optimism ETH
142142 function getSelectedCryptoDisplay ( ) : string | undefined {
143143 if ( selectedCrypto == null ) return
144144 if ( selectedWallet == null ) return
145145 if ( selectedCryptoCurrencyCode == null ) return
146146
147- const isL2Native =
148- selectedCrypto . tokenId == null &&
149- ! isAssetNativeToChain ( selectedWallet . currencyInfo , undefined )
150-
151- return isL2Native
152- ? `${ selectedCryptoCurrencyCode } (${ selectedWallet . currencyInfo . displayName } )`
153- : selectedCryptoCurrencyCode
147+ return isAssetNativeToChain (
148+ selectedWallet . currencyInfo ,
149+ selectedCrypto . tokenId
150+ )
151+ ? selectedCryptoCurrencyCode
152+ : `${ selectedCryptoCurrencyCode } (${ selectedWallet . currencyInfo . displayName } )`
154153 }
155154
156155 // Get the select crypto denomination for exchange rate
You can’t perform that action at this time.
0 commit comments