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:
parent
fd6fee4c9d
commit
370f721deb
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue