0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

🐛 Fixed falsy value not used in preview

no refs

For some boolean preview keys like `allowSelfSignup` and `disableBackground`, we ignored setting the falsy value which is incorrect and doesnt' load the expected Portal preview
This commit is contained in:
Rishabh 2021-05-18 14:47:23 +05:30
parent fd6fee4c9d
commit 370f721deb

View file

@ -238,9 +238,9 @@ export default class App extends React.Component {
data.site.plans.currency = currencyValue;
data.site.plans.currency_symbol = getCurrencySymbol(currencyValue);
currency = currencyValue;
} else if (key === 'disableBackground' && JSON.parse(value)) {
} else if (key === 'disableBackground') {
data.site.disableBackground = JSON.parse(value);
} else if (key === 'allowSelfSignup' && JSON.parse(value)) {
} else if (key === 'allowSelfSignup') {
data.site.allow_self_signup = JSON.parse(value);
}
}