Skip to content

Commit

Permalink
Fix statistics page
Browse files Browse the repository at this point in the history
  • Loading branch information
jotjern committed Oct 13, 2024
1 parent 8f08226 commit 5c69e50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/components/Charts/CalendarChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ interface IFrequncyCount {
}

const CalendarChart = ({ frequency, header }: IProps) => {
const last = frequency[frequency.length - 1];
const first = last.minus({ years: 1 });
const last = frequency[0];
const first = frequency[frequency.length - 1];
const dateStrings = frequency.map((date) => date.toISODate());
const inter: IFrequncyCount[] = dateStrings.map((date) => ({ [date]: 1 }));
const inter2: IFrequncyCount = inter.reduce((prev, curr) => {
Expand Down

0 comments on commit 5c69e50

Please sign in to comment.