diff --git a/public/index.html b/public/index.html index 5742e1cf6..0b577a76d 100755 --- a/public/index.html +++ b/public/index.html @@ -21,17 +21,22 @@ <% /* TEMP: testing cohesionConfig access */ %> <% /* NOTE: Adding Red Ventures related cohesion/tagular code for the launch of the new marketing website. */ %>
diff --git a/src/feedback/AlertMessage.jsx b/src/feedback/AlertMessage.jsx index 31f585bb2..f9b35735d 100644 --- a/src/feedback/AlertMessage.jsx +++ b/src/feedback/AlertMessage.jsx @@ -29,7 +29,7 @@ const AlertMessage = (props) => { useEffect(() => { const observerCallback = (entries) => { entries.forEach(entry => { - if (entry.isIntersecting && messageType === 'success' && userMessage.includes('added to basket')) { + if (entry.isIntersecting && entry.target?.innerText.includes('added to basket')) { const tagularElement = { title: PaymentTitle, url: entry.target?.baseURI,