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; 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();
}); });
} }
}, },