From 1a493e41811fbdd08bdc44b0e3937907eaf6ed4e Mon Sep 17 00:00:00 2001 From: Milan Lakhani Date: Fri, 15 Jul 2022 14:11:31 +0100 Subject: [PATCH] (design): Do not show organization if the item does not have one Signed-off-by: Milan Lakhani --- src/components/CardRenderer.js | 2 +- src/components/ItemDialogContentRenderer.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/CardRenderer.js b/src/components/CardRenderer.js index 71c6f72a..bffb2323 100644 --- a/src/components/CardRenderer.js +++ b/src/components/CardRenderer.js @@ -22,7 +22,7 @@ module.exports.renderDefaultCard = function renderDefaultCard({item}) {
${item.display_name ? h(item.display_name) : h(item.name)}
- ${h(item.organization)} + ${item.organization ? h(item.organization) : ""}
${_.isNumber(item.stars) && item.stars ? diff --git a/src/components/ItemDialogContentRenderer.js b/src/components/ItemDialogContentRenderer.js index 0b764aac..62626aca 100644 --- a/src/components/ItemDialogContentRenderer.js +++ b/src/components/ItemDialogContentRenderer.js @@ -653,8 +653,8 @@ module.exports.render = function({settings, tweetsCount, itemInfo}) { const productInfo = `
${h(itemInfo.name)}
- + ${itemInfo.organization ? `` : ""} ${productPaths.map( (productPath) => `
${renderItemCategory({path: productPath, itemInfo})}
`).join('')}