From e091b74f44074df1efef536be1bc7ee80687f71e Mon Sep 17 00:00:00 2001 From: "@yuri_assuncx" Date: Thu, 22 Aug 2024 11:42:59 -0300 Subject: [PATCH] fix: some fixes added --- components/header/Buttons/Cart/linx.tsx | 6 ++-- components/minicart/linx/Cart.tsx | 8 ++--- components/product/AddToCartButton/linx.tsx | 8 +++-- deno.json | 33 ++++++++++++++++++--- fresh.config.ts | 2 +- loaders/Blog/BlogPostPageImproved.ts | 2 -- 6 files changed, 42 insertions(+), 17 deletions(-) diff --git a/components/header/Buttons/Cart/linx.tsx b/components/header/Buttons/Cart/linx.tsx index 0429b12..432cbad 100644 --- a/components/header/Buttons/Cart/linx.tsx +++ b/components/header/Buttons/Cart/linx.tsx @@ -3,9 +3,9 @@ import Button from "./common.tsx"; function CartButton() { const { loading, cart } = useCart(); - const cartSize = cart.value?.Basket?.Items?.length || 0; - const products = cart.value?.Basket?.Items; - const coupon = cart.value?.Basket?.Coupons?.[0]?.Code; + const cartSize = cart.value?.Shopper?.Basket?.Items?.length || 0; + const products = cart.value?.Shopper?.Basket?.Items; + const coupon = cart.value?.Shopper?.Basket?.Coupons?.[0]?.Code; return (