mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-17 09:08:49 +00:00
fix: token verification condition
This commit is contained in:
parent
3e4e2dae0d
commit
514f6fa31e
@ -54,7 +54,6 @@ ModalPopup {
|
||||
|
||||
function onKeyReleased(){
|
||||
validationError = "";
|
||||
|
||||
if (!validate() || addressInput.text === "") {
|
||||
return;
|
||||
}
|
||||
@ -66,8 +65,7 @@ ModalPopup {
|
||||
target: walletModel.customTokenList
|
||||
onTokenDetailsWereResolved: {
|
||||
const jsonObj = JSON.parse(tokenDetails)
|
||||
|
||||
if(jsonObj.address === ""){
|
||||
if(jsonObj.name === "" || jsonObj.symbol === "" || jsonObj.decimals === ""){
|
||||
validationError = qsTr("Invalid ERC20 address")
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user