javascript-error for non-required price-fields
Created by: thomst
The javascript-code in main.js loops over all price-option-inputs and calls replace
on their data-amount-attributes. This fails if we use a non-required price-field, because non-required price-fields display a none-option, which does not have the data-amount-attribute.
The javascript error is:
main.js?r=gFi3Q:15 Uncaught TypeError: Cannot read property 'replace' of undefined at HTMLInputElement. (main.js?r=gFi3Q:15)