fix: token verification condition
This commit is contained in:
parent
3e4e2dae0d
commit
514f6fa31e
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue