@@ -356,7 +356,8 @@ const CoinRankingDetailsSceneComponent = (props: Props) => {
356356 */
357357 const chooseWalletListResult = async (
358358 filteredEdgeAssets : EdgeAsset [ ] ,
359- filteredMatchingWallets : EdgeCurrencyWallet [ ]
359+ filteredMatchingWallets : EdgeCurrencyWallet [ ] ,
360+ title : string
360361 ) : Promise < Extract < WalletListResult , { type : 'wallet' } > | undefined > => {
361362 // No compatible assets. Shouldn't happen since buttons are blocked from
362363 // handlers anyway, if there's no filteredEdgeAssets
@@ -391,13 +392,7 @@ const CoinRankingDetailsSceneComponent = (props: Props) => {
391392
392393 // Else, If multiple wallets, show picker. Tokens also can be added here.
393394 const result = await Airship . show < WalletListResult > ( bridge => (
394- < WalletListModal
395- bridge = { bridge }
396- navigation = { navigation as NavigationBase }
397- headerTitle = { lstrings . select_wallet_to_send_from }
398- allowedAssets = { filteredEdgeAssets }
399- showCreateWallet
400- />
395+ < WalletListModal bridge = { bridge } navigation = { navigation as NavigationBase } headerTitle = { title } allowedAssets = { filteredEdgeAssets } showCreateWallet />
401396 ) )
402397 // User aborted the flow. Callers will also noop.
403398 if ( result ?. type !== 'wallet' ) return
@@ -406,7 +401,7 @@ const CoinRankingDetailsSceneComponent = (props: Props) => {
406401
407402 const handleBuyPress = useHandler ( async ( ) => {
408403 if ( edgeAssets . length === 0 ) return
409- const forcedWalletResult = await chooseWalletListResult ( edgeAssets , matchingWallets )
404+ const forcedWalletResult = await chooseWalletListResult ( edgeAssets , matchingWallets , lstrings . fiat_plugin_select_asset_to_purchase )
410405 if ( forcedWalletResult == null ) return
411406
412407 navigation . navigate ( 'edgeTabs' , {
@@ -422,7 +417,7 @@ const CoinRankingDetailsSceneComponent = (props: Props) => {
422417
423418 const handleSellPress = useHandler ( async ( ) => {
424419 if ( edgeAssets . length === 0 ) return
425- const forcedWalletResult = await chooseWalletListResult ( edgeAssets , matchingWallets )
420+ const forcedWalletResult = await chooseWalletListResult ( edgeAssets , matchingWallets , lstrings . fiat_plugin_select_asset_to_sell )
426421 if ( forcedWalletResult == null ) return
427422
428423 navigation . navigate ( 'edgeTabs' , {
@@ -439,7 +434,7 @@ const CoinRankingDetailsSceneComponent = (props: Props) => {
439434 const handleSwapPress = useHandler ( async ( ) => {
440435 if ( edgeAssets . length === 0 ) return
441436
442- const walletListResult = await chooseWalletListResult ( edgeAssets , matchingWallets )
437+ const walletListResult = await chooseWalletListResult ( edgeAssets , matchingWallets , lstrings . select_wallet )
443438 if ( walletListResult == null ) return
444439
445440 const { walletId, tokenId } = walletListResult
@@ -484,7 +479,7 @@ const CoinRankingDetailsSceneComponent = (props: Props) => {
484479 } )
485480
486481 const handleStakePress = useHandler ( async ( ) => {
487- const walletListResult = await chooseWalletListResult ( edgeStakingAssets , stakingWallets )
482+ const walletListResult = await chooseWalletListResult ( edgeStakingAssets , stakingWallets , lstrings . select_wallet )
488483 if ( walletListResult == null ) return
489484 const { walletId } = walletListResult
490485
0 commit comments