UNPKG

fullcart

Version:

Add stripe checkout to any website

9 lines (7 loc) 323 B
import type { Product } from '../schemas/productSchema' import { customer } from '../stores/customer' export const removeItem = async (productId: Product['id']) => { const $customer = customer.get() const filtered = $customer.lines.filter((line) => line.productId !== productId) customer.setKey('lines', filtered) }