@akropolys/kiku 1.5.3 → 1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -2427,7 +2427,7 @@ Question: ${q}`;
|
|
|
2427
2427
|
(() => {
|
|
2428
2428
|
const similarProducts = results.filter(
|
|
2429
2429
|
(r) => {
|
|
2430
|
-
const isSameName = r.product.name.toLowerCase() === displayProduct
|
|
2430
|
+
const isSameName = !!(r.product.name && displayProduct?.name && r.product.name.toLowerCase() === displayProduct.name.toLowerCase());
|
|
2431
2431
|
const isSameSlug = r.product.slug && displayProduct?.slug && r.product.slug.toLowerCase() === displayProduct.slug.toLowerCase();
|
|
2432
2432
|
return !isSameName && !isSameSlug;
|
|
2433
2433
|
}
|
|
@@ -2597,7 +2597,7 @@ Question: ${q}`;
|
|
|
2597
2597
|
/* @__PURE__ */ jsx8("div", { className: "hsk-sp-results", children: (() => {
|
|
2598
2598
|
const similarProducts = results.filter(
|
|
2599
2599
|
(r) => {
|
|
2600
|
-
const isSameName = r.product.name.toLowerCase() === displayProduct
|
|
2600
|
+
const isSameName = !!(r.product.name && displayProduct?.name && r.product.name.toLowerCase() === displayProduct.name.toLowerCase());
|
|
2601
2601
|
const isSameSlug = r.product.slug && displayProduct?.slug && r.product.slug.toLowerCase() === displayProduct.slug.toLowerCase();
|
|
2602
2602
|
return !isSameName && !isSameSlug;
|
|
2603
2603
|
}
|