Fix checkout routing
This commit is contained in:
parent
f20ccd67e2
commit
8191e166e5
1 changed files with 1 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue