forked from crowetic/commerce
/checkout redirects to cart if no cookie is set
This commit is contained in:
parent
c9b4a9ad4c
commit
7f7795ec87
@ -16,7 +16,8 @@ const checkoutApi: BigcommerceApiHandler<any> = async (req, res, config) => {
|
||||
|
||||
try {
|
||||
if (!cartId) {
|
||||
return res.status(404).end()
|
||||
res.redirect('/cart')
|
||||
return
|
||||
}
|
||||
|
||||
const { data } = await config.storeApiFetch(
|
||||
|
Loading…
x
Reference in New Issue
Block a user