mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 07:09:48 +03:00
Fixed multiple products check helper method
no refs - fixes incorrect condition in helper that determines if Portal has multiple products or single from site
This commit is contained in:
parent
8d51bc20f0
commit
5ebfbb79a7
@ -141,7 +141,7 @@ export function hasMultipleProducts({site = {}}) {
|
||||
const {
|
||||
products = []
|
||||
} = site || {};
|
||||
if (products?.length > 0) {
|
||||
if (products?.length > 1) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user