Fix newsletter bug
This commit is contained in:
parent
97c2a63387
commit
968b3415d2
1 changed files with 1 additions and 2 deletions
|
@ -86,6 +86,7 @@ class _NewsletterState extends State<Newsletter> {
|
||||||
var emailQuery = emailController.text;
|
var emailQuery = emailController.text;
|
||||||
subscribe(emailQuery).then((status) {
|
subscribe(emailQuery).then((status) {
|
||||||
if (status == 200) {
|
if (status == 200) {
|
||||||
|
emailController.clear();
|
||||||
return showDialog(
|
return showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
barrierDismissible: false,
|
barrierDismissible: false,
|
||||||
|
@ -114,8 +115,6 @@ class _NewsletterState extends State<Newsletter> {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
emailController.clear();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue