forked from crowetic/commerce
Update get-checkout-id.ts
This commit is contained in:
parent
b0d8ae565d
commit
029a8372a2
@ -1,8 +1,8 @@
|
|||||||
import Cookies from 'js-cookie'
|
import Cookies from 'js-cookie'
|
||||||
import { SHOPIFY_CHECKOUT_COOKIE } from '..'
|
import { SHOPIFY_CHECKOUT_ID_COOKIE } from '../const'
|
||||||
|
|
||||||
const getCheckoutId = (id?: string) => {
|
const getCheckoutId = (id?: string) => {
|
||||||
const checkoutID = id ?? Cookies.get(SHOPIFY_CHECKOUT_COOKIE)
|
const checkoutID = id ?? Cookies.get(SHOPIFY_CHECKOUT_ID_COOKIE)
|
||||||
console.log(checkoutID)
|
console.log(checkoutID)
|
||||||
return checkoutID
|
return checkoutID
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user