Skip to content

Commit

Permalink
bridge_ui: remove bad nft check
Browse files Browse the repository at this point in the history
Change-Id: I72391812f417c8dbc74ebe960fce1fc6840a7b59
  • Loading branch information
evan-gray committed Nov 10, 2021
1 parent 7ad15fb commit 5fb7b92
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions bridge_ui/src/store/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,7 @@ export const selectTransferSourceError = (
if (!state.transfer.sourceParsedTokenAccount.uiAmountString) {
return "Token amount unavailable";
}
if (state.transfer.sourceParsedTokenAccount.decimals === 0) {
// TODO: more advanced NFT check - also check supply and uri
return "For NFTs, use the NFT flow";
}
// no NFT check - NFTs should be blocked by all token pickers
try {
// these may trigger error: fractional component exceeds decimals
if (
Expand Down

0 comments on commit 5fb7b92

Please sign in to comment.