forked from yaso_meth/mih-project
remove loading if user alreadfy exists
This commit is contained in:
@@ -89,6 +89,7 @@ class _RegisterState extends State<Register> {
|
||||
if (response.statusCode == 200) {
|
||||
var userExists = jsonDecode(response.body);
|
||||
if (userExists["exists"]) {
|
||||
Navigator.of(context).pop();
|
||||
signUpError();
|
||||
} else {
|
||||
var response2 = await http.post(
|
||||
|
||||
Reference in New Issue
Block a user