824 viewsJS Amazona

Whenever I click the cart button, it displays the error page instead of showing the cart.

However, the add to cart button works perfectly.

It shows this error

Uncaught (in promise) TypeError: screen.after_render is not a function

Bassir Answered question March 10, 2023

use this:

<code><span class="hljs-keyword">if</span> (<span class="hljs-keyword">typeof</span> screen.after_render === <span class="hljs-string">'function'</span>) {
    <span class="hljs-comment">// do something</span>
}</code>
Bassir Answered question March 10, 2023
You are viewing 1 out of 1 answers, click here to view all answers.