Add to cart button issue with out of stock variants

Hello All,

In my store, when FIRST select an out-of stock-variant, the “Add to cart” button is still there. Then, if i go back & select the In-Stock variant, i get the “sold out” button. Any ideas how to fix this? Here is a link to an example item. https://shopena.com/products/x-g100r-visor

Theme: Warehouse

Apps: Alert Me! Restock Alerts. Product Accessories. Stamped.io Reviews & UGC.

Hi @Shopena I checked the issue, it requires deep dive into the theme code and debugs the issue.