fix: remove backend name check from badge flag (#6236)
* fix: remove backend name check from badge flag * drop undefined check * drop bool cast
This commit is contained in:
parent
8818dadf24
commit
803c749b13
@ -9,7 +9,6 @@ import { HistoryDuration, SafetyLevel } from 'graphql/data/__generated__/types-a
|
||||
import { useTrendingCollections } from 'graphql/data/nft/TrendingCollections'
|
||||
import { SearchToken } from 'graphql/data/SearchTokens'
|
||||
import useTrendingTokens from 'graphql/data/TrendingTokens'
|
||||
import { CHAIN_ID_TO_BACKEND_NAME } from 'graphql/data/util'
|
||||
import { useIsNftPage } from 'hooks/useIsNftPage'
|
||||
import { Box } from 'nft/components/Box'
|
||||
import { Column, Row } from 'nft/components/Flex'
|
||||
@ -361,9 +360,7 @@ export const SearchBarDropdown = ({
|
||||
searchHistory,
|
||||
])
|
||||
|
||||
const showBNBComingSoonBadge = Boolean(
|
||||
chainId !== undefined && chainId === SupportedChainId.BNB && !isLoading && !CHAIN_ID_TO_BACKEND_NAME[chainId]
|
||||
)
|
||||
const showBNBComingSoonBadge = chainId === SupportedChainId.BNB && !isLoading
|
||||
|
||||
return (
|
||||
<Box className={styles.searchBarDropdownNft}>
|
||||
|
Loading…
Reference in New Issue
Block a user