This commit is contained in:
cond0r 2021-02-04 18:09:20 +02:00
parent d35adf9c21
commit 1a43a0ab57
3 changed files with 1 additions and 8 deletions

View File

@ -29,8 +29,6 @@ const getProduct = async (options: {
const product = data?.productByHandle
console.info(normalizeProduct(product))
return {
product: product ? normalizeProduct(product) : null,
}

View File

@ -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

View File

@ -34,7 +34,4 @@ module.exports = {
},
]
},
typescript: {
ignoreBuildErrors: true,
},
}