@factorypure/client-helpers 1.1.10 → 1.1.11
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 +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1346,7 +1346,7 @@ export const filterScrapeResultsV2 = ({ scrapeResults, variant, variantScrapeOpt
|
|
|
1346
1346
|
function handleDuplicatesV2(results) {
|
|
1347
1347
|
const filteredUniqueResultsMap = {};
|
|
1348
1348
|
results.forEach((item) => {
|
|
1349
|
-
const key = `${item.source}-${item.title}-${item.extracted_price}`;
|
|
1349
|
+
const key = `${item.source}-${item.title}-${item.extracted_total ?? item.extracted_price}`;
|
|
1350
1350
|
if (!filteredUniqueResultsMap[key]) {
|
|
1351
1351
|
filteredUniqueResultsMap[key] = item;
|
|
1352
1352
|
}
|