mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
changes
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user