Skip to content

Commit

Permalink
lint issue fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gowtami committed Oct 25, 2023
1 parent 04d2470 commit 1719a3c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions blocks/contactus/contactus.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ export default function decorate() {
} else if (i === 1) {
innerElements += pTags[i].outerHTML;
} else if (i === 3) {
phone = pTags[2].outerHTML.replace(
/<p>/g,
`<a class='phone' href="tel:' ${pTags[2].innerHTML.trim()} '">`
);
phone = pTags[2].outerHTML.replace(/<p>/g, `<a class='phone' href="tel:' ${pTags[2].innerHTML.trim()} '">`);
phone.replace(/<\/p>/g, '</a>');
pTags[i].innerHTML = `<div class="buttons">' ${
phone + pTags[i].innerHTML
Expand Down

0 comments on commit 1719a3c

Please sign in to comment.