diff --git a/src/components/SendDialog.js b/src/components/SendDialog.js index 8aeed60..a73c46b 100644 --- a/src/components/SendDialog.js +++ b/src/components/SendDialog.js @@ -47,6 +47,9 @@ const WUSDT_MINT = new PublicKey( ); const USDT_MINT = new PublicKey('Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB'); +const DISABLED_ERC20_MINTS = new Set([ + 'kinXdEcpDQeHPEuQnqmUgtYykqKGVFq6CeVX5iAHJq6' +]) export default function SendDialog({ open, onClose, publicKey, balanceInfo }) { const isProdNetwork = useIsProdNetwork(); @@ -82,16 +85,22 @@ export default function SendDialog({ open, onClose, publicKey, balanceInfo }) { , ]; } else { - return [ - , + const erc20Tab = ( , + /> + ); + const tabs = [ + , ]; + if (!DISABLED_ERC20_MINTS.has(mint.toString())) { + tabs.push(erc20Tab); + } + return tabs; } };