fix: Node Issues (#2498)

- Allow adding new nodes without port
- Replace default port number for empty string when there's no port added
This commit is contained in:
David Adegoke
2025-09-05 16:41:11 +03:00
committed by GitHub
parent 067313e077
commit f0ca065a48
3 changed files with 12 additions and 8 deletions
@@ -71,8 +71,7 @@ abstract class NodeCreateOrEditViewModelBase with Store {
@computed
bool get isReady =>
(address.isNotEmpty && port.isNotEmpty) ||
_walletType == WalletType.decred; // Allow an empty address.
(address.isNotEmpty) || _walletType == WalletType.decred; // Allow an empty address.
bool get hasAuthCredentials =>
_walletType == WalletType.monero || _walletType == WalletType.wownero || _walletType == WalletType.haven;