diff --git a/components/cart/CartItem/CartItem.tsx b/components/cart/CartItem/CartItem.tsx
index 47389aee4..14bd10c94 100644
--- a/components/cart/CartItem/CartItem.tsx
+++ b/components/cart/CartItem/CartItem.tsx
@@ -4,11 +4,10 @@ import Image from 'next/image'
import Link from 'next/link'
import s from './CartItem.module.css'
import { Trash, Plus, Minus } from '@components/icons'
-import {useUI} from '@components/ui/context'
+import { useUI } from '@components/ui/context'
import usePrice from '@framework/product/use-price'
import useUpdateItem from '@framework/cart/use-update-item'
import useRemoveItem from '@framework/cart/use-remove-item'
-import { CartItem } from 'framework/types'
const Item = ({
item,
@@ -93,7 +92,10 @@ const Item = ({
-
closeSidebarIfPresent()}>
+ closeSidebarIfPresent()}
+ >
{item.name}
diff --git a/components/cart/CartSidebarView/CartSidebarView.tsx b/components/cart/CartSidebarView/CartSidebarView.tsx
index dd3b62f29..01ce64850 100644
--- a/components/cart/CartSidebarView/CartSidebarView.tsx
+++ b/components/cart/CartSidebarView/CartSidebarView.tsx
@@ -94,7 +94,7 @@ const CartSidebarView: FC = () => {
My Cart
- {data.products.map((item: any) => (
+ {data?.products?.map((item) => (
= ({
{product.price.currencyCode}
-
+ /> */}
{product?.images && (
diff --git a/components/product/ProductView/ProductView.tsx b/components/product/ProductView/ProductView.tsx
index d55e52611..d3d11ea16 100644
--- a/components/product/ProductView/ProductView.tsx
+++ b/components/product/ProductView/ProductView.tsx
@@ -12,7 +12,7 @@ import usePrice from '@framework/product/use-price'
import { useAddItem } from '@framework/cart'
import { getVariant, SelectedOptions } from '../helpers'
-import WishlistButton from '@components/wishlist/WishlistButton'
+// import WishlistButton from '@components/wishlist/WishlistButton'
interface Props {
className?: string
@@ -24,7 +24,7 @@ const ProductView: FC
= ({ product }) => {
const addItem = useAddItem()
const { price } = usePrice({
amount: product.price.value,
- baseAmount: product.price.retailValue,
+ baseAmount: product.price.retailPrice,
currencyCode: product.price.currencyCode!,
})
const { openSidebar } = useUI()
@@ -152,11 +152,11 @@ const ProductView: FC = ({ product }) => {
-
+ /> */}
)
diff --git a/components/wishlist/WishlistButton/index.ts b/components/wishlist/WishlistButton/index.ts
deleted file mode 100644
index 66e88074b..000000000
--- a/components/wishlist/WishlistButton/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { default } from './WishlistButton'
diff --git a/package.json b/package.json
index d8229071d..9848a4674 100644
--- a/package.json
+++ b/package.json
@@ -103,7 +103,7 @@
"webpack": "5.11.1"
},
"engines": {
- "node": ">=14"
+ "node": "12.x"
},
"license": "MIT"
}
diff --git a/tsconfig.json b/tsconfig.json
index 856ebbff5..0992a8cd6 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -33,5 +33,5 @@
"**/*.tsx",
"**/*.js"
],
- "exclude": ["node_modules"]
+ "exclude": ["node_modules", "components/wishlist"]
}