diff --git a/js/mailalerts.js b/js/mailalerts.js index 8086399..320dc43 100644 --- a/js/mailalerts.js +++ b/js/mailalerts.js @@ -22,7 +22,7 @@ function addNotification(productId, productAttributeId) { if (typeof productId === 'undefined') { var ids = $('div.js-mailalert > input[type=hidden]'); productId = ids.eq(0).val(); - productIdAttribute = ids.eq(1).val(); + productAttributeId = ids.eq(1).val(); } $.ajax({