Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
hero-dokane committed Oct 28, 2024
1 parent 84f8d9b commit cf3d85f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions blocks/plans-quote/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ export default function formDecoration(block) {
window.location.href = `.${PET_PLANS_SUMMARY_QUOTE_URL}`; // ex: './summary-quote'
}

async function executeAddPet2Step(recId, productName) {
async function executeAddPet2Step(recId) {
Loader.showLoader();
if (!await saveSelectedProduct(formData.petId, recId)) {
// eslint-disable-next-line no-console
Expand Down Expand Up @@ -816,7 +816,7 @@ export default function formDecoration(block) {
<p>${additionalInfo.priceComment}</p>
</div>
<div class="product-fragment" data-product-id="${product.itemId}"></div>
<div class="button-wrapper"><button class="choose-product" data-product-rec-id="${product.recId}" data-product-name="${additionalInfo.name}">Add</button></div>
<div class="button-wrapper"><button class="choose-product" data-product-rec-id="${product.recId}">Add</button></div>
</div>
`;
}
Expand All @@ -834,7 +834,7 @@ export default function formDecoration(block) {
const chooseProductButtons = document.querySelectorAll('.choose-product');
chooseProductButtons.forEach((button) => {
button.addEventListener('click', (event) => {
executeAddPet2Step(event.target.getAttribute('data-product-rec-id'), event.target.getAttribute('data-product-name'));
executeAddPet2Step(event.target.getAttribute('data-product-rec-id'));
});
});
} else {
Expand Down

0 comments on commit cf3d85f

Please sign in to comment.