diff --git a/src/constants/index.js b/src/constants/index.js index 145caf6..e959f7d 100644 --- a/src/constants/index.js +++ b/src/constants/index.js @@ -6,7 +6,7 @@ const Categories = Object.freeze({ EVENT: { label: 'evento', color: 'dark-blue' }, WORKSHOP: { label: 'workshop', color: 'dark-blue' }, MEDIA: { label: 'media', color: 'dark-blue' }, - EDUCACAO: { label: 'educação', color: 'dark-blue' } + EDUCATION: { label: 'educação', color: 'dark-blue' } }); const LinkType = Object.freeze({ diff --git a/src/pages/Activities/index.js b/src/pages/Activities/index.js index e000844..f8fa751 100644 --- a/src/pages/Activities/index.js +++ b/src/pages/Activities/index.js @@ -108,7 +108,9 @@ function Activities({ translation }) { {Object.values(Constants.Categories).map((category, index) => { const label = category.label; - return ( + const categoryTotal = calculateCategoryTotal(label); + + return categoryTotal ? ( + ) : ( + '' ); })}