Skip to content

Commit

Permalink
removed console stmt and test message in productherojs
Browse files Browse the repository at this point in the history
  • Loading branch information
lakshmithi committed Dec 10, 2024
1 parent 66fd779 commit 02a7a01
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 02a7a01

Please sign in to comment.