fix Js error when none option present in price field
Created by: sunilpawar
When you create Multiple price field in one price set, and one of the price field is not required, then civicrm give additional option to say - none -
, this element does not contain data-amount
attribute. This lead to generate JS Error.
This fix, will check data-amount
attribute exist. if not, it return for continue next iteration.