Skip to content

Commit

Permalink
Merge pull request #1321 from hlxsites/prod-price
Browse files Browse the repository at this point in the history
removed console stmt and test message from product hero
  • Loading branch information
Raja-danaher authored Dec 10, 2024
2 parents 66fd779 + 02a7a01 commit ff49747
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions blocks/product-hero/product-hero.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ export default async function decorate(block) {
defaultContent.prepend(span({ class: 'categories hidden' }, response[0]?.raw.categories));
defaultContent.prepend(span({ class: 'category-name' }, response[0]?.raw?.defaultcategoryname ? response[0]?.raw?.defaultcategoryname : ''));
const rfqEl = block.querySelector(':scope > div:nth-child(1)');
console.log(rfqEl);
const addCartBtnEl = block.querySelector(':scope > div:nth-child(1)');
addCartBtnEl.classList.add(...'btn-outline-trending-brand text-lg rounded-full px-4 py-2 !no-underline'.split(' '));
if (rfqEl && rfqEl.textContent.includes('Request for Quote')) {
Expand All @@ -197,7 +196,6 @@ export default async function decorate(block) {
const infoDiv = div();
if (response[0]?.raw.externallink !== undefined) {
infoDiv.prepend(
p('Test Message'),
p('For additional information'),
a(
{ href: `${response[0]?.raw.externallink}?utm_source=dhls_website`, target: '_blank' },
Expand Down

0 comments on commit ff49747

Please sign in to comment.