diff --git a/ui/components/multichain/asset-picker-amount/asset-picker-modal/asset-picker-modal.tsx b/ui/components/multichain/asset-picker-amount/asset-picker-modal/asset-picker-modal.tsx index d7c88efa2bf6..d9a1a3a08588 100644 --- a/ui/components/multichain/asset-picker-amount/asset-picker-modal/asset-picker-modal.tsx +++ b/ui/components/multichain/asset-picker-amount/asset-picker-modal/asset-picker-modal.tsx @@ -249,8 +249,10 @@ export function AssetPickerModal({ // Default filter predicate for whether a token should be included in displayed list const shouldAddToken = (symbol: string, address?: string | null) => { + const trimmedSearchQuery = searchQuery.trim(); return ( - symbol?.toLowerCase().includes(searchQuery.toLowerCase()) && + (!trimmedSearchQuery || + symbol?.toLowerCase().includes(trimmedSearchQuery.toLowerCase())) && !filteredTokensAddresses.has(address?.toLowerCase()) ); };