Fix newsletter bug

This commit is contained in:
Moe Poi ~ 2022-05-21 23:25:31 +07:00
parent 97c2a63387
commit 968b3415d2

View file

@ -86,6 +86,7 @@ class _NewsletterState extends State<Newsletter> {
var emailQuery = emailController.text;
subscribe(emailQuery).then((status) {
if (status == 200) {
emailController.clear();
return showDialog(
context: context,
barrierDismissible: false,
@ -114,8 +115,6 @@ class _NewsletterState extends State<Newsletter> {
}
);
}
emailController.clear();
});
}
},