mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Fixed price reset when no monthly/yearly prices
no refs When we reset the prices on leaving the membership settings screen, its possible we don't have the prices created already and not able to read any monthly/yearly price.
This commit is contained in:
parent
b8e6107c6a
commit
1b491aa083
1 changed files with 2 additions and 2 deletions
|
@ -413,8 +413,8 @@ export default class MembersAccessController extends Controller {
|
|||
const monthlyPrice = this.getPrice(activePrices, 'monthly');
|
||||
const yearlyPrice = this.getPrice(activePrices, 'yearly');
|
||||
|
||||
this.stripeMonthlyAmount = (monthlyPrice.amount / 100);
|
||||
this.stripeYearlyAmount = (yearlyPrice.amount / 100);
|
||||
this.stripeMonthlyAmount = monthlyPrice ? (monthlyPrice.amount / 100) : 5;
|
||||
this.stripeYearlyAmount = yearlyPrice ? (yearlyPrice.amount / 100) : 50;
|
||||
}
|
||||
|
||||
reset() {
|
||||
|
|
Loading…
Add table
Reference in a new issue