mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
Updated plan amount fields to allow empty values
no issue
This commit is contained in:
parent
c3e129c5da
commit
06e6e15cc5
@ -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;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user