fix: token verification condition

This commit is contained in:
Richard Ramos 2020-11-06 09:33:15 -04:00 committed by Iuri Matias
parent 3e4e2dae0d
commit 514f6fa31e
1 changed files with 1 additions and 3 deletions

View File

@ -54,7 +54,6 @@ ModalPopup {
function onKeyReleased(){ function onKeyReleased(){
validationError = ""; validationError = "";
if (!validate() || addressInput.text === "") { if (!validate() || addressInput.text === "") {
return; return;
} }
@ -66,8 +65,7 @@ ModalPopup {
target: walletModel.customTokenList target: walletModel.customTokenList
onTokenDetailsWereResolved: { onTokenDetailsWereResolved: {
const jsonObj = JSON.parse(tokenDetails) const jsonObj = JSON.parse(tokenDetails)
if(jsonObj.name === "" || jsonObj.symbol === "" || jsonObj.decimals === ""){
if(jsonObj.address === ""){
validationError = qsTr("Invalid ERC20 address") validationError = qsTr("Invalid ERC20 address")
return; return;
} }