Skip to content

Commit

Permalink
Merge pull request #228 from boostcampwm2023/fix/analysis-data
Browse files Browse the repository at this point in the history
[Fix] 일기 월별 통계 오류 해결
  • Loading branch information
dmson1218 authored Dec 6, 2023
2 parents 36cde8c + e17a62d commit e757ca5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FE/src/components/DiaryModal/DiaryAnalysisModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ function DiaryAnalysisModal() {
};
const newMonthAnalysis = Array(12).fill(0);
Object.keys(data).forEach((date) => {
const { sentiment } = data[date];
const { sentiment, count } = data[date];
newEmotion[sentiment] += 1;
newMonthAnalysis[dayjs(date).month()] += 1;
newMonthAnalysis[dayjs(date).month()] += count;
});

if (
Expand Down

0 comments on commit e757ca5

Please sign in to comment.