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:
Jordan Frankfurt 2023-03-23 18:01:09 -04:00 committed by GitHub
parent 8818dadf24
commit 803c749b13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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}>