Fix checkout routing

This commit is contained in:
Moe Poi ~ 2022-05-21 17:22:20 +07:00
parent f20ccd67e2
commit 8191e166e5

View file

@ -257,11 +257,7 @@ class _CheckoutFormState extends State<CheckoutForm> {
if (isLoggedIn) {
submitForm(context).then((statusCode) {
if (statusCode == 201) {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) =>
const Payment()));
Navigator.pushReplacementNamed(context, '/payment');
} else if (statusCode == 999) {
showAlertDialog(context);
}