From ef155ba5e2261a88a2973a2b5a3d44128def968b Mon Sep 17 00:00:00 2001 From: GustavoAdrianGimenez Date: Sat, 8 Apr 2023 11:59:52 -0300 Subject: [PATCH] Fix docs disabled condition Signed-off-by: GustavoAdrianGimenez --- .../EntityBazaarInfoContent/EntityBazaarInfoContent.tsx | 2 +- .../HomePageBazaarInfoCard/HomePageBazaarInfoCard.tsx | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/bazaar/src/components/EntityBazaarInfoContent/EntityBazaarInfoContent.tsx b/plugins/bazaar/src/components/EntityBazaarInfoContent/EntityBazaarInfoContent.tsx index 1a8229341b..0c7b0bb126 100644 --- a/plugins/bazaar/src/components/EntityBazaarInfoContent/EntityBazaarInfoContent.tsx +++ b/plugins/bazaar/src/components/EntityBazaarInfoContent/EntityBazaarInfoContent.tsx @@ -133,7 +133,7 @@ export const EntityBazaarInfoContent = ({ label: 'Docs', icon: , href: bazaarProject?.docs, - disabled: bazaarProject?.docs === undefined || bazaarProject?.docs === '', + disabled: bazaarProject?.docs === null || bazaarProject?.docs === '', }, ]; diff --git a/plugins/bazaar/src/components/HomePageBazaarInfoCard/HomePageBazaarInfoCard.tsx b/plugins/bazaar/src/components/HomePageBazaarInfoCard/HomePageBazaarInfoCard.tsx index 090fa44854..782b7d3c67 100644 --- a/plugins/bazaar/src/components/HomePageBazaarInfoCard/HomePageBazaarInfoCard.tsx +++ b/plugins/bazaar/src/components/HomePageBazaarInfoCard/HomePageBazaarInfoCard.tsx @@ -203,8 +203,7 @@ export const HomePageBazaarInfoCard = ({ icon: , href: bazaarProject.value?.docs, disabled: - bazaarProject.value?.docs === undefined || - bazaarProject.value?.docs === '', + bazaarProject.value?.docs === null || bazaarProject.value?.docs === '', }, ];