diff --git a/sitio/src/routes/ean/[ean]/+page.server.ts b/sitio/src/routes/ean/[ean]/+page.server.ts index cc98182..9f9f9e3 100644 --- a/sitio/src/routes/ean/[ean]/+page.server.ts +++ b/sitio/src/routes/ean/[ean]/+page.server.ts @@ -13,7 +13,7 @@ export const load: PageServerLoad = async ({ params }) => { const res = await q; if (res.length === 0) return error(404, "Not Found"); - const meta = res.find((p) => p.name); + const meta = res.findLast((p) => p.name); return { precios: res, meta }; };