From 5ebfbb79a78ffb07394f76a17d26c179325dfde2 Mon Sep 17 00:00:00 2001 From: Rishabh Date: Fri, 11 Jun 2021 12:38:02 +0530 Subject: [PATCH] Fixed multiple products check helper method no refs - fixes incorrect condition in helper that determines if Portal has multiple products or single from site --- ghost/portal/src/utils/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/portal/src/utils/helpers.js b/ghost/portal/src/utils/helpers.js index b2ec520d0a..cb69d3cf11 100644 --- a/ghost/portal/src/utils/helpers.js +++ b/ghost/portal/src/utils/helpers.js @@ -141,7 +141,7 @@ export function hasMultipleProducts({site = {}}) { const { products = [] } = site || {}; - if (products?.length > 0) { + if (products?.length > 1) { return true; } return false;