Update get-checkout-id.ts

This commit is contained in:
cond0r 2021-02-04 17:22:01 +02:00
parent b0d8ae565d
commit 029a8372a2

View File

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