mirror of
https://github.com/vercel/commerce.git
synced 2025-07-27 04:01:23 +00:00
changes
This commit is contained in:
@@ -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