Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
herzog31 committed Jun 11, 2024
1 parent 6bc1ecc commit 3626b91
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions blocks/product-recommendations/product-recommendations.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ function renderItems(block, recommendations) {
}

/* window.adobeDataLayer.push((dl) => {
dl.push({ event: 'recs-unit-impression-render', eventInfo: { ...dl.getState(), unitId: recommendation.unitId } });
dl.push({
event: 'recs-unit-impression-render',
eventInfo: { ...dl.getState(), unitId: recommendation.unitId } });
}); */

// Title
Expand All @@ -109,7 +111,9 @@ function renderItems(block, recommendations) {
entries.forEach((entry) => {
if (entry.isIntersecting) {
/* window.adobeDataLayer.push((dl) => {
dl.push({ event: 'recs-unit-view', eventInfo: { ...dl.getState(), unitId: recommendation.unitId } });
dl.push({
event: 'recs-unit-view',
eventInfo: { ...dl.getState(), unitId: recommendation.unitId } });
}); */
inViewObserver.disconnect();
}
Expand All @@ -118,7 +122,7 @@ function renderItems(block, recommendations) {
inViewObserver.observe(block);
}

const mapUnit = (unit) => ({
/* const mapUnit = (unit) => ({
...unit,
unitType: 'primary',
searchTime: 0,
Expand All @@ -132,7 +136,7 @@ const mapUnit = (unit) => ({
type: '?',
queryType: product.__typename,
})),
});
}); */

async function loadRecommendation(block, context) {
// Only proceed if all required data is available
Expand Down

0 comments on commit 3626b91

Please sign in to comment.