diff --git a/webapp/src/components/AssetTopbar/AssetTopbar.tsx b/webapp/src/components/AssetTopbar/AssetTopbar.tsx index 1f87719229..677730f295 100644 --- a/webapp/src/components/AssetTopbar/AssetTopbar.tsx +++ b/webapp/src/components/AssetTopbar/AssetTopbar.tsx @@ -24,6 +24,7 @@ import { isListsSection, persistIsMapProperty } from '../../modules/ui/utils' +import { View } from '../../modules/ui/types' import trash from '../../images/trash.png' import { Chip } from '../Chip' import { Props } from './AssetTopbar.types' @@ -160,9 +161,11 @@ export const AssetTopbar = ({ const handleFieldClick = useCallback(() => { // opens the dropdown on the field focus setShouldRenderSearchDropdown( - category === NFTCategory.EMOTE || category === NFTCategory.WEARABLE + (category === NFTCategory.EMOTE || category === NFTCategory.WEARABLE) && + view !== View.CURRENT_ACCOUNT && + view !== View.ACCOUNT ) - }, [category]) + }, [category, view]) const handleSearchBarDropdownClickOutside = useCallback(event => { // when clicking outside the dropdown, close it