This commit is contained in:
cond0r
2021-02-04 16:03:52 +02:00
parent 67ed55d114
commit 32184ecdbd
6 changed files with 42 additions and 105 deletions

View File

@@ -2,7 +2,9 @@ import Cookies from 'js-cookie'
import { SHOPIFY_CHECKOUT_COOKIE } from '..'
const getCheckoutId = (id?: string) => {
return id ?? Cookies.get(SHOPIFY_CHECKOUT_COOKIE)
const checkoutID = id ?? Cookies.get(SHOPIFY_CHECKOUT_COOKIE)
console.log(checkoutID)
return checkoutID
}
export default getCheckoutId