bridge_ui: remove bad nft check

Change-Id: I72391812f417c8dbc74ebe960fce1fc6840a7b59
This commit is contained in:
Evan Gray 2021-11-10 10:45:47 -05:00
parent 7ad15fbfc4
commit 5fb7b923bf
1 changed files with 1 additions and 4 deletions

View File

@ -214,10 +214,7 @@ export const selectTransferSourceError = (
if (!state.transfer.sourceParsedTokenAccount.uiAmountString) { if (!state.transfer.sourceParsedTokenAccount.uiAmountString) {
return "Token amount unavailable"; return "Token amount unavailable";
} }
if (state.transfer.sourceParsedTokenAccount.decimals === 0) { // no NFT check - NFTs should be blocked by all token pickers
// TODO: more advanced NFT check - also check supply and uri
return "For NFTs, use the NFT flow";
}
try { try {
// these may trigger error: fractional component exceeds decimals // these may trigger error: fractional component exceeds decimals
if ( if (