Skip to content

Commit

Permalink
fix: finally custom dates are working
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashutosh00710 committed May 19, 2024
1 parent 2dcb745 commit e75e73e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ export class Fetcher {
// either the day hasn't really started
// or the user hasn't contributed today
const length = userData.contributions.length;
if (userData.contributions[length - 1].contributionCount === 0) {
userData.contributions.pop();
}
if (!(customFromDate && customToDate)) {
if (userData.contributions[length - 1].contributionCount === 0) {
userData.contributions.pop();
}
const extra = userData.contributions.length - days;
userData.contributions.splice(0, extra);
}
Expand Down

0 comments on commit e75e73e

Please sign in to comment.