Skip to content

Commit 9f6c310

Browse files
fix: success order page
1 parent b3882a8 commit 9f6c310

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pages/CheckoutPage/CheckoutPage.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ const CheckoutPage = () => {
145145
}
146146
};
147147

148-
if (items.length === 0) {
148+
if (items.length === 0 && !location.pathname.includes("/checkout/success")) {
149149
navigate('/cart');
150150
return null;
151151
}

0 commit comments

Comments
 (0)