0
Fork 0
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:
Rishabh 2021-06-28 11:07:23 +05:30
parent b60ac8d952
commit cfdd8c93ca

View file

@ -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;