diff --git a/apps/wallet-mobile/src/features/Swap/useCases/StartSwapScreen/CreateOrder/EditBuyAmount/SelectBuyTokenFromListScreen/SelectBuyTokenFromListScreen.tsx b/apps/wallet-mobile/src/features/Swap/useCases/StartSwapScreen/CreateOrder/EditBuyAmount/SelectBuyTokenFromListScreen/SelectBuyTokenFromListScreen.tsx index b6387fc22c..4e4831de3d 100644 --- a/apps/wallet-mobile/src/features/Swap/useCases/StartSwapScreen/CreateOrder/EditBuyAmount/SelectBuyTokenFromListScreen/SelectBuyTokenFromListScreen.tsx +++ b/apps/wallet-mobile/src/features/Swap/useCases/StartSwapScreen/CreateOrder/EditBuyAmount/SelectBuyTokenFromListScreen/SelectBuyTokenFromListScreen.tsx @@ -108,7 +108,7 @@ const TokenList = () => { keyExtractor={({info: {id, name}}) => `${name}-${id}`} testID="assetsList" estimatedItemSize={72} - ListEmptyComponent={} + ListEmptyComponent={} /> @@ -178,17 +178,10 @@ const SelectableToken = ({wallet, token, walletTokenIds}: SelectableTokenProps) ) } -const EmptyList = ({ - filteredTokensForList, - balances, -}: { - filteredTokensForList: Array - balances: Balance.Amounts -}) => { +const EmptyList = ({filteredTokensForList}: {filteredTokensForList: Array}) => { const {search: assetSearchTerm, visible: isSearching} = useSearch() - const hasTokenBalance = Object.keys(balances).length === 1 - if ((isSearching && assetSearchTerm.length > 0 && filteredTokensForList.length === 0) || hasTokenBalance) + if (isSearching && assetSearchTerm.length > 0 && filteredTokensForList.length === 0) return return null