Commit 803c749b authored by Jordan Frankfurt's avatar Jordan Frankfurt Committed by GitHub

fix: remove backend name check from badge flag (#6236)

* fix: remove backend name check from badge flag

* drop undefined check

* drop bool cast
parent 8818dadf
...@@ -9,7 +9,6 @@ import { HistoryDuration, SafetyLevel } from 'graphql/data/__generated__/types-a ...@@ -9,7 +9,6 @@ import { HistoryDuration, SafetyLevel } from 'graphql/data/__generated__/types-a
import { useTrendingCollections } from 'graphql/data/nft/TrendingCollections' import { useTrendingCollections } from 'graphql/data/nft/TrendingCollections'
import { SearchToken } from 'graphql/data/SearchTokens' import { SearchToken } from 'graphql/data/SearchTokens'
import useTrendingTokens from 'graphql/data/TrendingTokens' import useTrendingTokens from 'graphql/data/TrendingTokens'
import { CHAIN_ID_TO_BACKEND_NAME } from 'graphql/data/util'
import { useIsNftPage } from 'hooks/useIsNftPage' import { useIsNftPage } from 'hooks/useIsNftPage'
import { Box } from 'nft/components/Box' import { Box } from 'nft/components/Box'
import { Column, Row } from 'nft/components/Flex' import { Column, Row } from 'nft/components/Flex'
...@@ -361,9 +360,7 @@ export const SearchBarDropdown = ({ ...@@ -361,9 +360,7 @@ export const SearchBarDropdown = ({
searchHistory, searchHistory,
]) ])
const showBNBComingSoonBadge = Boolean( const showBNBComingSoonBadge = chainId === SupportedChainId.BNB && !isLoading
chainId !== undefined && chainId === SupportedChainId.BNB && !isLoading && !CHAIN_ID_TO_BACKEND_NAME[chainId]
)
return ( return (
<Box className={styles.searchBarDropdownNft}> <Box className={styles.searchBarDropdownNft}>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment