From 9112defa51301b28446c54e97a95e482c90370cf Mon Sep 17 00:00:00 2001 From: Gabriel Masclef Date: Fri, 17 Jul 2026 00:19:53 -0300 Subject: [PATCH] Ref: remove XRP US restriction for buy/sell/swap --- src/navigation/services/screens/BuyAndSellRoot.tsx | 9 ++------- .../services/swap-crypto/screens/SwapCryptoRoot.tsx | 6 +----- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/src/navigation/services/screens/BuyAndSellRoot.tsx b/src/navigation/services/screens/BuyAndSellRoot.tsx index 342e724ca..dffb35e7c 100644 --- a/src/navigation/services/screens/BuyAndSellRoot.tsx +++ b/src/navigation/services/screens/BuyAndSellRoot.tsx @@ -1096,8 +1096,7 @@ const BuyAndSellRoot = ({ } // TODO: add the ability to remove coins or chains from buyCryptoConfig - const coinsToRemove = - !locationData || locationData.countryShortCode === 'US' ? ['xrp'] : []; + const coinsToRemove: string[] = []; if (coinsToRemove.length > 0) { coinsToRemove.forEach((coin: string) => { @@ -1717,11 +1716,7 @@ const BuyAndSellRoot = ({ }); if (allSupportedCoins.length > 0) { - const coinsToRemove = - !locationData || locationData.countryShortCode === 'US' - ? ['xrp'] - : []; - coinsToRemove.push('busd'); + const coinsToRemove: string[] = ['busd']; if (coinsToRemove.length > 0) { logger.debug( diff --git a/src/navigation/services/swap-crypto/screens/SwapCryptoRoot.tsx b/src/navigation/services/swap-crypto/screens/SwapCryptoRoot.tsx index 69bc8c3ab..46a0e8801 100644 --- a/src/navigation/services/swap-crypto/screens/SwapCryptoRoot.tsx +++ b/src/navigation/services/swap-crypto/screens/SwapCryptoRoot.tsx @@ -1698,11 +1698,7 @@ const SwapCryptoRoot: React.FC = () => { } }); if (allSupportedCoins.length > 0) { - const coinsToRemove = - !locationData || locationData.countryShortCode === 'US' - ? ['xrp'] - : []; - coinsToRemove.push('busd'); + const coinsToRemove: string[] = ['busd']; if (coinsToRemove.length > 0) { logger.debug(