mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 14:03:48 +03:00
Fixed change plan bug
This commit is contained in:
parent
e4e68f4526
commit
3210f5d346
@ -19,7 +19,7 @@ const DEV_MODE_DATA = {
|
||||
showPopup: true,
|
||||
site: Fixtures.site,
|
||||
member: Fixtures.member.paid,
|
||||
page: 'signup'
|
||||
page: 'accountHome'
|
||||
};
|
||||
|
||||
function SentryErrorBoundary({site, children}) {
|
||||
|
@ -708,7 +708,7 @@ function ProductPriceSwitch({products, selectedInterval, setSelectedInterval}) {
|
||||
|
||||
let yearlyDiscount = 0;
|
||||
|
||||
if (selectedProduct !== 'free') {
|
||||
if (products && selectedProduct !== 'free') {
|
||||
const product = products.find(prod => prod.id === selectedProduct);
|
||||
yearlyDiscount = calculateDiscount(product.monthlyPrice.amount, product.yearlyPrice.amount);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user