feat(MED-131): handle analysis order

This commit is contained in:
2025-08-04 11:53:04 +03:00
parent 08950896e5
commit 91f6dd11be
10 changed files with 310 additions and 140 deletions

View File

@@ -87,8 +87,8 @@ export async function getOrSetCart(countryCode: string) {
return cart;
}
export async function updateCart(data: HttpTypes.StoreUpdateCart) {
const cartId = await getCartId();
export async function updateCart({ id, ...data }: HttpTypes.StoreUpdateCart & { id?: string }) {
const cartId = id || (await getCartId());
if (!cartId) {
throw new Error(