diff --git a/src/routes/shop/__layout.svelte b/src/routes/shop/__layout.svelte index 072c8b1..11d066d 100644 --- a/src/routes/shop/__layout.svelte +++ b/src/routes/shop/__layout.svelte @@ -237,7 +237,7 @@ } // Define current product - const product = results.find((result: any) => result.slug.includes(page.params.name)) + const product = results.find((result: any) => result.slug.includes(productAPI.location.slug)) if (product) { shopProduct = product } @@ -259,4 +259,4 @@ } } } - + \ No newline at end of file