diff --git a/lib/components/IPAndPortFormField.dart b/lib/components/IPAndPortFormField.dart index c9f5ec7..e10942e 100644 --- a/lib/components/IPAndPortFormField.dart +++ b/lib/components/IPAndPortFormField.dart @@ -113,7 +113,7 @@ class _IPAndPortFormField extends FormFieldState { super.didUpdateWidget(oldWidget); var update = IPAndPort( ip: widget.ipController?.text, - port: int.tryParse(widget.portController?.text ?? "") ?? null, + port: int.tryParse(widget.portController?.text ?? ""), ); bool shouldUpdate = false;