mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Fixed unsaved change modal on new prices
no refs When creating new prices on save in membership settings, we were incorrectly calculating if price has changed since the last save and showing the unsaved changes modal incorrectly.
This commit is contained in:
parent
5ca0ad0ef6
commit
510e31e6e6
1 changed files with 1 additions and 0 deletions
|
@ -58,6 +58,7 @@ export default class MembersAccessController extends Controller {
|
||||||
|
|
||||||
get hasChangedPrices() {
|
get hasChangedPrices() {
|
||||||
if (this.product) {
|
if (this.product) {
|
||||||
|
this.stripePrices = this.product.get('stripePrices') || [];
|
||||||
const activePrices = this.stripePrices.filter(price => !!price.active);
|
const activePrices = this.stripePrices.filter(price => !!price.active);
|
||||||
const monthlyPrice = this.getPrice(activePrices, 'monthly');
|
const monthlyPrice = this.getPrice(activePrices, 'monthly');
|
||||||
const yearlyPrice = this.getPrice(activePrices, 'yearly');
|
const yearlyPrice = this.getPrice(activePrices, 'yearly');
|
||||||
|
|
Loading…
Add table
Reference in a new issue