Loan Laux f52978e1a3
fix cart update and add API calls to work for logged-in users
Signed-off-by: Loan Laux <loan@outgrow.io>
2021-04-27 18:40:02 +04:00

9 lines
201 B
TypeScript

import Cookies from 'js-cookie'
import { REACTION_CART_ID_COOKIE } from '../const'
const getCartId = (id?: string) => {
return id ?? Cookies.get(REACTION_CART_ID_COOKIE)
}
export default getCartId