Skip to content

Commit

Permalink
fix(typo): activity threemonths -> threeMonths
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroenv committed Apr 29, 2017
1 parent fb10485 commit 6bd505b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/src/lib/Details/Activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ import { isEmpty, encode } from '../util';

const threeMonths = 12; // 4 weeks * 3 = 12

const commitsLastThreemonths = ({ weeklyData }) =>
const commitsLastThreeMonths = ({ weeklyData }) =>
weeklyData.slice(-(threeMonths + 1));

const countCommitsLastThreeMonths = ({ weeklyData }) =>
commitsLastThreemonths({ weeklyData }).reduce(
commitsLastThreeMonths({ weeklyData }).reduce(
(acc, { total }) => acc + total,
0
);

const commitsPerWeekLastThreeMonths = ({ weeklyData }) =>
commitsLastThreemonths({ weeklyData }).map(week => week.total);
commitsLastThreeMonths({ weeklyData }).map(week => week.total);

const weeksAgoSinceLastCommit = ({ weeklyData }) =>
formatWeeksSinceLastCommit(
Expand Down

0 comments on commit 6bd505b

Please sign in to comment.