Skip to content

Commit

Permalink
Merge branch 'staging'
Browse files Browse the repository at this point in the history
  • Loading branch information
annelhote committed Apr 15, 2024
2 parents c6855c8 + 28085f7 commit 744ae46
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,14 @@ const Chart = ({ domain, hasComments, hasFooter, id }) => {
),
);

allData.comments.sort = intl
.formatMessage({ id: `app.publi.${sort}` })
.toLowerCase();
allData.comments.discipline = categories[0].key;
allData.comments.rate = Math.round(categories[0].percent);
setChartComments(customComments(allData, idWithDomain, intl));
if (allData?.comments) {
allData.comments.sort = intl
.formatMessage({ id: `app.publi.${sort}` })
.toLowerCase();
allData.comments.discipline = categories[0].key;
allData.comments.rate = Math.round(categories[0].percent);
setChartComments(customComments(allData, idWithDomain, intl));
}
}, [allData, categories, dataGraph, dataTitle, id, idWithDomain, intl, sort]);

return (
Expand Down

0 comments on commit 744ae46

Please sign in to comment.