Required parameter missing or invalid: items on Shopify

Hello so I went into the liquid code of “product-template.liquid” and the “cart-template.liquid” and retried to tried connected to the wallet. In the first instance, it works perfectly as shown.

I am able to connect to my wallet and after I connect, I try to press the button again to add to cart, but it’s not working. It says in the error msg that “Required parameter missing or invalid: items”

Any help?