Skip to content

Commit

Permalink
fix: redirect to variant
Browse files Browse the repository at this point in the history
  • Loading branch information
dhairyadwivedi committed Aug 19, 2024
1 parent 1d78401 commit 811510c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion application/src/ui/components/item/product.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ export const Product: React.FC<{ item: ProductSlim }> = ({ item }) => {

const focalPoint = item.variant.images[0]?.focalPoint;

const skuPath = item.variant.sku ? `?sku=${item.variant.sku}` : '';

return (
<Link
to={path(item.path)}
to={path(`${item.path}${skuPath}`)}
data-testid="product-link"
prefetch="intent"
className="grid grid-rows-[1fr_minmax(25px_50px)_40px] place-items-stretch w-full min-h-full justify-stretch items-stretch relative product-link"
Expand Down

0 comments on commit 811510c

Please sign in to comment.