mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-02 12:14:09 +01:00
Add validation on node input in advanced privacy settings
This commit is contained in:
@@ -78,7 +78,14 @@ class _AdvancedPrivacySettingsBodyState extends State<AdvancedPrivacySettingsBod
|
|||||||
children: [
|
children: [
|
||||||
LoadingPrimaryButton(
|
LoadingPrimaryButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
widget.nodeViewModel.save(saveAsCurrent: true);
|
if (widget.privacySettingsViewModel.addCustomNode) {
|
||||||
|
if (_formKey.currentState != null && !_formKey.currentState!.validate()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
widget.nodeViewModel.save(saveAsCurrent: true);
|
||||||
|
}
|
||||||
|
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
},
|
},
|
||||||
text: S.of(context).continue_text,
|
text: S.of(context).continue_text,
|
||||||
|
|||||||
Reference in New Issue
Block a user