Skip to content

Commit

Permalink
Fix routing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferri0 committed Nov 21, 2024
1 parent 9c4ae7f commit c8e5269
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/initializers/order.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ async function handleUserOrdersRedirects(
if (checkIsAuthenticated()) {
window.location.href = CUSTOMER_ORDERS_PATH;
} else if (isTokenProvided) {
window.location.href = orderNumber ? ORDER_STATUS_PATH : `${ORDER_STATUS_PATH}?orderRef=${orderNumber}`;
window.location.href = orderNumber ? `${ORDER_STATUS_PATH}?orderRef=${orderNumber}` : ORDER_STATUS_PATH;
} else {
window.location.href = `${ORDER_STATUS_PATH}?orderRef=${orderRef}`;
}
Expand Down

0 comments on commit c8e5269

Please sign in to comment.