mirror of
https://github.com/vercel/commerce.git
synced 2025-03-14 22:42:33 +00:00
Update get-checkout-id.ts
This commit is contained in:
parent
b0d8ae565d
commit
029a8372a2
@ -1,8 +1,8 @@
|
||||
import Cookies from 'js-cookie'
|
||||
import { SHOPIFY_CHECKOUT_COOKIE } from '..'
|
||||
import { SHOPIFY_CHECKOUT_ID_COOKIE } from '../const'
|
||||
|
||||
const getCheckoutId = (id?: string) => {
|
||||
const checkoutID = id ?? Cookies.get(SHOPIFY_CHECKOUT_COOKIE)
|
||||
const checkoutID = id ?? Cookies.get(SHOPIFY_CHECKOUT_ID_COOKIE)
|
||||
console.log(checkoutID)
|
||||
return checkoutID
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user