Skip to content

Commit

Permalink
Merge pull request #6213 from hotosm/fix/6131-stats-page-crash-for-ar…
Browse files Browse the repository at this point in the history
…chived-projects

Fix `Project Stats` page crash issue for `Archived` projects
  • Loading branch information
ramyaragupathy authored Feb 12, 2024
2 parents df6f87e + b1b542d commit c95b72f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/projectStats/contributorsStats.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { Chart as ChartJS, ArcElement, BarElement } from 'chart.js';
import { Chart as ChartJS, ArcElement, BarElement, CategoryScale, LinearScale } from 'chart.js';
import { Doughnut, Bar } from 'react-chartjs-2';
import { FormattedMessage, useIntl } from 'react-intl';

Expand All @@ -10,7 +10,7 @@ import { formatChartData, formatTooltip } from '../../utils/formatChartJSData';
import { useContributorStats } from '../../hooks/UseContributorStats';
import { StatsCardContent } from '../statsCard';

ChartJS.register(ArcElement, BarElement);
ChartJS.register(ArcElement, BarElement, CategoryScale, LinearScale);

export default function ContributorsStats({ contributors }) {
const intl = useIntl();
Expand Down

0 comments on commit c95b72f

Please sign in to comment.