File tree Expand file tree Collapse file tree
app/components/UI/Ramp/hooks Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ jest.mock('react-redux', () => ({
2929 selected : {
3030 chainId : 'eip155:1' ,
3131 assetId : 'eip155:1/erc20:0xasset' ,
32+ symbol : 'ETH' ,
3233 } ,
3334 } ) ) ,
3435} ) ) ;
@@ -1206,6 +1207,7 @@ describe('useTransakRouting', () => {
12061207 providerCode : 'transak-native' ,
12071208 walletAddress : MOCK_WALLET_ADDRESS ,
12081209 showCloseButton : true ,
1210+ cryptocurrency : 'ETH' ,
12091211 } ) ,
12101212 } ) ,
12111213 ] ,
@@ -1245,12 +1247,13 @@ describe('useTransakRouting', () => {
12451247 routes : [
12461248 expect . objectContaining ( {
12471249 name : 'RampsOrderDetails' ,
1248- params : {
1250+ params : expect . objectContaining ( {
12491251 callbackUrl,
12501252 providerCode : 'transak-native' ,
12511253 walletAddress : MOCK_WALLET_ADDRESS ,
12521254 showCloseButton : true ,
1253- } ,
1255+ cryptocurrency : 'ETH' ,
1256+ } ) ,
12541257 } ) ,
12551258 ] ,
12561259 } ) ,
@@ -1580,6 +1583,7 @@ describe('useTransakRouting', () => {
15801583 providerCode : 'transak-native' ,
15811584 walletAddress : MOCK_WALLET_ADDRESS ,
15821585 showCloseButton : true ,
1586+ cryptocurrency : 'ETH' ,
15831587 } ) ,
15841588 } ) ,
15851589 ] ,
Original file line number Diff line number Diff line change @@ -478,6 +478,7 @@ export const useTransakRouting = (config?: UseTransakRoutingConfig) => {
478478
479479 // Same pattern as unified Buy WebView Checkout: leave the webview
480480 // immediately; OrderDetails resolves the order via callback params.
481+ const cryptoSymbol = selectedToken ?. symbol ;
481482 navigation . reset ( {
482483 index : 0 ,
483484 routes : [
@@ -488,6 +489,7 @@ export const useTransakRouting = (config?: UseTransakRoutingConfig) => {
488489 providerCode : normalizeProviderCode ( 'transak-native' ) ,
489490 walletAddress : walletAddress || '' ,
490491 showCloseButton : true ,
492+ ...( cryptoSymbol ? { cryptocurrency : cryptoSymbol } : { } ) ,
491493 } ,
492494 } ,
493495 ] ,
@@ -502,6 +504,7 @@ export const useTransakRouting = (config?: UseTransakRoutingConfig) => {
502504 refreshOrder ,
503505 regionIsoCode ,
504506 trackEvent ,
507+ selectedToken ,
505508 ] ,
506509 ) ;
507510
You can’t perform that action at this time.
0 commit comments