Fixed loading Portal when Stripe is enabled, members disabled and don… (#18757)

…ations flag disabled

refs https://ghost.slack.com/archives/C02G9E68C/p1698230240376929
This commit is contained in:
Simon Backx 2023-10-25 13:18:50 +02:00 committed by GitHub
parent 8aaa853f2c
commit 9cad62d826
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@ function finaliseStructuredData(meta) {
function getMembersHelper(data, frontendKey) { function getMembersHelper(data, frontendKey) {
// Do not load Portal if both Memberships and Tips & Donations are disabled // Do not load Portal if both Memberships and Tips & Donations are disabled
if (!settingsCache.get('members_enabled') && !settingsCache.get('donations_enabled')) { if (!settingsCache.get('members_enabled') && !(settingsCache.get('donations_enabled') && labs.isSet('tipsAndDonations'))) {
return ''; return '';
} }