Updated plan amount fields to allow empty values

no issue
This commit is contained in:
Rish 2019-10-03 23:09:29 +05:30
parent c3e129c5da
commit 06e6e15cc5

View File

@ -199,7 +199,7 @@ export default Controller.extend({
if (key === 'month' || key === 'year') {
stripeConfig.plans = stripeConfig.plans.map((plan) => {
if (key === plan.interval) {
plan.amount = event.target.value * 100;
plan.amount = isNumber(event.target.value) ? event.target.value * 100 : '';
}
return plan;
});