mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-02 07:47:26 -04:00
RemoteNodeEdit: fix getAddress() and isValid() inconsistency
This commit is contained in:
@@ -73,13 +73,12 @@ GridLayout {
|
||||
}
|
||||
|
||||
function getAddress() {
|
||||
if (!isValid()) {
|
||||
return "";
|
||||
}
|
||||
|
||||
var addr = daemonAddr.text.trim();
|
||||
var port = daemonPort.text.trim();
|
||||
|
||||
// validation
|
||||
if(addr === "" || addr.length < 2) return "";
|
||||
if(!Utils.isNumeric(port)) return "";
|
||||
|
||||
return addr + ":" + port;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user