Skip to content

Commit

Permalink
fix: display the order confirmation page when returning from redirect…
Browse files Browse the repository at this point in the history
… after checkout (#1227)
  • Loading branch information
SGrueber committed Jul 28, 2022
1 parent 1cabc4b commit 3ea3b8c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/pages/checkout/checkout-page.module.ts
Expand Up @@ -20,21 +20,25 @@ const checkoutPageRoutes: Routes = [
children: [
{
path: 'address',
canActivate: [CheckoutPageGuard],
data: { checkoutStep: 1 },
component: CheckoutAddressPageModule.component,
},
{
path: 'shipping',
canActivate: [CheckoutPageGuard],
data: { checkoutStep: 2 },
component: CheckoutShippingPageModule.component,
},
{
path: 'payment',
canActivate: [CheckoutPageGuard],
data: { checkoutStep: 3 },
component: CheckoutPaymentPageModule.component,
},
{
path: 'review',
canActivate: [CheckoutPageGuard],
data: { checkoutStep: 4 },
component: CheckoutReviewPageModule.component,
},
Expand All @@ -49,7 +53,6 @@ const checkoutPageRoutes: Routes = [
redirectTo: 'address',
},
],
canActivate: [CheckoutPageGuard],
},
];

Expand Down

0 comments on commit 3ea3b8c

Please sign in to comment.