From f3b4ad4db75276f5cb1b41ef57cd0bb2c0f7cef0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alfredo=20Gonz=C3=A1lez?= Date: Wed, 6 Sep 2023 15:11:09 -0300 Subject: [PATCH 1/2] =?UTF-8?q?fix(Projects):=20Muestra=20=C3=ADconos=20de?= =?UTF-8?q?=20Objetivos=20de=20Aprendizaje=20s=C3=B3lo=20si=20existen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Track/Projects.jsx | 2 +- src/lib/learning-objectives.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Track/Projects.jsx b/src/components/Track/Projects.jsx index 1af28426f..f933630cf 100644 --- a/src/components/Track/Projects.jsx +++ b/src/components/Track/Projects.jsx @@ -47,7 +47,7 @@ const Project = ({ lang, project }) => { {learningObjectiveCats.map(cat => { const icon = learningObjectiveToIcon(cat); - return ( + return icon && ( { - return learningObjectivesIcons[key] || {}; + return learningObjectivesIcons[key] || undefined; }; \ No newline at end of file From e6d7bd8914a89821622acf1dfd2fa401b7bb611d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alfredo=20Gonz=C3=A1lez?= Date: Wed, 6 Sep 2023 15:17:12 -0300 Subject: [PATCH 2/2] fix(refactor): Removes redundant code --- src/lib/learning-objectives.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/learning-objectives.js b/src/lib/learning-objectives.js index 1523bfa49..c68deb697 100644 --- a/src/lib/learning-objectives.js +++ b/src/lib/learning-objectives.js @@ -163,5 +163,5 @@ const learningObjectivesIcons = { }; export const learningObjectiveToIcon = (key) => { - return learningObjectivesIcons[key] || undefined; + return learningObjectivesIcons[key]; }; \ No newline at end of file