Why isn't my debut theme adding selected variants to the cart?

So to alleviate another issue I was having I added a script to show current inventory of any product. Now when selecting variants, it only ads the first option to the shopping cart. I’ve seen a few fixes listed but I’m struggling with it and need some help.

quartercakes.com is our website and any help would be appreciated.

Hi @quartercakes ,

I do not see products that has several options, therefore, I cannot check if this the issue. You do have an error in your console. Please follow the instructions below

  1. From your Admin Page, click Online Store > Themes >Actions > Edit code

  2. In the Asset folder, open the theme.js

  3. Find the _onSelectChange:, then just add a curly brace. Please refer to image below

Okay awesome. I relisted an item that has multiple variations and it still isn’t working after adding the { that you showed. thanks for the help.