diff --git a/app/components/cart-listitem.tsx b/app/components/cart-listitem.tsx index ef2963e..e4b8964 100644 --- a/app/components/cart-listitem.tsx +++ b/app/components/cart-listitem.tsx @@ -1,5 +1,5 @@ import type { ReactNode } from "react"; -import { useFetcher } from "remix"; +import { useFetcher, useLocation } from "remix"; import cn from "classnames"; import { PickTranslations } from "~/translations.server"; @@ -27,6 +27,7 @@ export function CartListItem({ "Add item" | "Remove from cart" | "Subtract item" | "Quantity: $1" >; }) { + let location = useLocation(); let { Form } = useFetcher(); return ( @@ -62,8 +63,14 @@ export function CartListItem({
{formattedPrice}