diff --git a/src/js/components/useQuantityInput.ts b/src/js/components/useQuantityInput.ts index 204ebf5a3..db03a1ec9 100644 --- a/src/js/components/useQuantityInput.ts +++ b/src/js/components/useQuantityInput.ts @@ -168,11 +168,11 @@ const updateQuantity = async (qtyInputGroup: Theme.QuantityInput.InputGroup, cha if (data.hasError) { const errors = data.errors as Array; - const productAlertSelector = resetAlertContainer(qtyInput); + const cartAlertSelector = cartSelectorMap.alertPlaceholder; - if (errors && productAlertSelector) { + if (errors && cartAlertSelector) { errors.forEach((error: string) => { - useAlert(error, {type: 'danger', selector: productAlertSelector}).show(); + useAlert(error, {type: 'danger', selector: cartAlertSelector}).show(); }); } } else { diff --git a/templates/checkout/_partials/cart-detailed-product-line.tpl b/templates/checkout/_partials/cart-detailed-product-line.tpl index 8e3c610d9..e4fdb2885 100644 --- a/templates/checkout/_partials/cart-detailed-product-line.tpl +++ b/templates/checkout/_partials/cart-detailed-product-line.tpl @@ -4,9 +4,6 @@ *}
- {assign var=product_line_alert_id value=10|mt_rand:100000} -
-