File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,10 @@ class _NewFarmState extends State<NewFarm> {
83
83
nameError = "Name can't be empty" ;
84
84
return false ;
85
85
}
86
+ if (farmName.contains (' ' )) {
87
+ nameError = "Name can't contain spaces" ;
88
+ return false ;
89
+ }
86
90
87
91
if (widget.isV4) {
88
92
if (! isAlphanumeric (farmName)) {
@@ -108,6 +112,12 @@ class _NewFarmState extends State<NewFarm> {
108
112
});
109
113
return false ;
110
114
}
115
+ if (_selectedWallet! .stellarBalance == '-1' ) {
116
+ setState (() {
117
+ walletError = 'Wallet not activated on stellar' ;
118
+ });
119
+ return false ;
120
+ }
111
121
return true ;
112
122
}
113
123
@@ -160,7 +170,7 @@ class _NewFarmState extends State<NewFarm> {
160
170
}
161
171
162
172
Future <void > _validateAndAdd () async {
163
- if (! _validateWallet ()) return ;
173
+ if (! _validateWallet ()) return ;
164
174
final farmName = _nameController.text.trim ();
165
175
setState (() {
166
176
saveLoading = true ;
You can’t perform that action at this time.
0 commit comments