From 91b7bde16f91aff00da7092b639cf07893baba55 Mon Sep 17 00:00:00 2001 From: GustavoAdrianGimenez Date: Fri, 7 Apr 2023 12:14:55 -0300 Subject: [PATCH] Fix disabled docs link comparission Signed-off-by: GustavoAdrianGimenez --- .../EntityBazaarInfoContent/EntityBazaarInfoContent.tsx | 2 +- .../HomePageBazaarInfoCard/HomePageBazaarInfoCard.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/bazaar/src/components/EntityBazaarInfoContent/EntityBazaarInfoContent.tsx b/plugins/bazaar/src/components/EntityBazaarInfoContent/EntityBazaarInfoContent.tsx index 0c7b0bb126..1a8229341b 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 === null || bazaarProject?.docs === '', + disabled: bazaarProject?.docs === undefined || bazaarProject?.docs === '', }, ]; diff --git a/plugins/bazaar/src/components/HomePageBazaarInfoCard/HomePageBazaarInfoCard.tsx b/plugins/bazaar/src/components/HomePageBazaarInfoCard/HomePageBazaarInfoCard.tsx index 782b7d3c67..090fa44854 100644 --- a/plugins/bazaar/src/components/HomePageBazaarInfoCard/HomePageBazaarInfoCard.tsx +++ b/plugins/bazaar/src/components/HomePageBazaarInfoCard/HomePageBazaarInfoCard.tsx @@ -203,7 +203,8 @@ export const HomePageBazaarInfoCard = ({ icon: , href: bazaarProject.value?.docs, disabled: - bazaarProject.value?.docs === null || bazaarProject.value?.docs === '', + bazaarProject.value?.docs === undefined || + bazaarProject.value?.docs === '', }, ];