From 8199ef004d7597e3106dcc7bb856ed75b5e996e2 Mon Sep 17 00:00:00 2001 From: plowsof Date: Sat, 9 Jul 2022 17:41:06 +0100 Subject: [PATCH] convert nettype to int to return correct rpc port --- main.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.qml b/main.qml index d7577359..ffbe4e54 100644 --- a/main.qml +++ b/main.qml @@ -2253,7 +2253,7 @@ ApplicationWindow { } function getDefaultDaemonRpcPort(networkType) { - switch (networkType) { + switch (parseInt(networkType)) { case NetworkType.STAGENET: return 38081; case NetworkType.TESTNET: