mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-15 03:01:37 -05:00
Updated portal products check for only multiple products
no refs
This commit is contained in:
parent
b60ac8d952
commit
cfdd8c93ca
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ export function getAvailableProducts({site}) {
|
|||
}).filter((product) => {
|
||||
return !!(Object.keys(product.monthlyPrice).length > 0 && Object.keys(product.yearlyPrice).length > 0);
|
||||
}).filter((product) => {
|
||||
if (portalProducts) {
|
||||
if (portalProducts && products.length > 1) {
|
||||
return portalProducts.includes(product.id);
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Add table
Reference in a new issue