diff --git a/components/cart/CartItem/CartItem.tsx b/components/cart/CartItem/CartItem.tsx index 14bd10c94..91a70af0b 100644 --- a/components/cart/CartItem/CartItem.tsx +++ b/components/cart/CartItem/CartItem.tsx @@ -12,6 +12,7 @@ import useRemoveItem from '@framework/cart/use-remove-item' const Item = ({ item, currencyCode, + ...rest }: { item: CartItem currencyCode: string @@ -79,6 +80,7 @@ const Item = ({ className={cn('flex flex-row space-x-8 py-8', { 'opacity-75 pointer-events-none': removing, })} + {...rest} >
{ const { price: subTotal } = usePrice( data && { - amount: data.subTotal, + amount: Number(data.subTotal), currencyCode: data.currency?.code || 'USD', } ) const { price: total } = usePrice( data && { - amount: data.total, + amount: Number(data.total), currencyCode: data.currency?.code || 'USD', } ) @@ -94,7 +94,7 @@ const CartSidebarView: FC = () => { My Cart