diff --git a/src/components/SearchModal/CurrencySearch.tsx b/src/components/SearchModal/CurrencySearch.tsx index 7a77c1bdfa..7a5cc0acef 100644 --- a/src/components/SearchModal/CurrencySearch.tsx +++ b/src/components/SearchModal/CurrencySearch.tsx @@ -385,13 +385,13 @@ export function CurrencySearch({ const removeImportedToken = useCallback( (token: Token) => { removeToken(chainId, token.address) - - toggleFavoriteToken({ - chainId, - address: token.address, - }) + if (favoriteTokens?.some(el => el.toLowerCase() === token.address.toLowerCase())) + toggleFavoriteToken({ + chainId, + address: token.address, + }) }, - [chainId, toggleFavoriteToken, removeToken], + [chainId, toggleFavoriteToken, removeToken, favoriteTokens], ) const removeAllImportToken = () => {