File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed
packages/mask/src/plugins/ITO/SNSAdaptor Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -219,6 +219,17 @@ interface ClaimAllDialogProps {
219219
220220const SUPPORTED_CHAIN_ID_LIST = ITO_Definition . enableRequirement . web3 ?. [ NetworkPluginID . PLUGIN_EVM ] ?. supportedChainIds !
221221
222+ const CHAIN_CHECK =
223+ ChainId . Mainnet ||
224+ ChainId . BSC ||
225+ ChainId . Matic ||
226+ ChainId . Arbitrum ||
227+ ChainId . xDai ||
228+ ChainId . Celo ||
229+ ChainId . Fantom ||
230+ ChainId . Aurora ||
231+ ChainId . Avalanche
232+
222233export function ClaimAllDialog ( props : ClaimAllDialogProps ) {
223234 const { t } = useI18N ( )
224235 const { open, onClose } = props
@@ -332,9 +343,7 @@ export function ClaimAllDialog(props: ClaimAllDialogProps) {
332343 />
333344 </ div >
334345 < div className = { classes . contentWrapper } ref = { DialogRef } >
335- { ( showNftAirdrop || loadingAirdrop ) &&
336- SUPPORTED_CHAIN_ID_LIST . includes ( chainId ) &&
337- Flags . nft_airdrop_enabled ? (
346+ { ( showNftAirdrop || loadingAirdrop ) && chainId === CHAIN_CHECK && Flags . nft_airdrop_enabled ? (
338347 < NftAirdropCard
339348 campaignInfos = { campaignInfos ! }
340349 loading = { loadingAirdrop }
@@ -356,7 +365,7 @@ export function ClaimAllDialog(props: ClaimAllDialogProps) {
356365 </ div >
357366 ) : null }
358367 { ( swappedTokens && swappedTokens . length > 0 ) ||
359- ( SUPPORTED_CHAIN_ID_LIST . includes ( chainId ) && Flags . nft_airdrop_enabled ) ? (
368+ ( chainId === CHAIN_CHECK && Flags . nft_airdrop_enabled ) ? (
360369 < div className = { classes . actionButtonWrapper } >
361370 < EthereumChainBoundary
362371 chainId = { chainId }
You can’t perform that action at this time.
0 commit comments