remove loading if user alreadfy exists
This commit is contained in:
parent
1c6f00b5b8
commit
4d29f3f5b4
1 changed files with 1 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue