forked from crowetic/commerce
changes
This commit is contained in:
parent
d35adf9c21
commit
1a43a0ab57
@ -29,8 +29,6 @@ const getProduct = async (options: {
|
||||
|
||||
const product = data?.productByHandle
|
||||
|
||||
console.info(normalizeProduct(product))
|
||||
|
||||
return {
|
||||
product: product ? normalizeProduct(product) : null,
|
||||
}
|
||||
|
@ -2,9 +2,7 @@ import Cookies from 'js-cookie'
|
||||
import { SHOPIFY_CHECKOUT_ID_COOKIE } from '../const'
|
||||
|
||||
const getCheckoutId = (id?: string) => {
|
||||
const checkoutID = id ?? Cookies.get(SHOPIFY_CHECKOUT_ID_COOKIE)
|
||||
console.log(checkoutID)
|
||||
return checkoutID
|
||||
return id ?? Cookies.get(SHOPIFY_CHECKOUT_ID_COOKIE)
|
||||
}
|
||||
|
||||
export default getCheckoutId
|
||||
|
@ -34,7 +34,4 @@ module.exports = {
|
||||
},
|
||||
]
|
||||
},
|
||||
typescript: {
|
||||
ignoreBuildErrors: true,
|
||||
},
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user