Skip to content

Commit

Permalink
eds-400 updated link
Browse files Browse the repository at this point in the history
  • Loading branch information
KostiantynFandeliuk committed Sep 18, 2024
1 parent 5e6eba3 commit 191910c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/dropins.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,10 @@ const handleUserOrdersRedirects = () => {
}

events.on("order/error", ({ error }) => {
const defaultErrorMessage =
"We couldn't locate an order with the information provided.";
const defaultErrorMessage = "Please login to view the order.";

if (error.includes(defaultErrorMessage)) {
window.location.href = `${ORDER_STATUS_PATH}`;
window.location.href = `${ORDER_DETAILS_PATH}${ORDER_REF_URL_QUERY}`;
} else if (isAuthenticated) {
window.location.href = `${CUSTOMER_ORDERS_PATH}`;
} else {
Expand Down

0 comments on commit 191910c

Please sign in to comment.