Skip to content

Commit

Permalink
reduce the skyline length by 1 week because GitHub GraphQL API now do…
Browse files Browse the repository at this point in the history
…es not allow more than 1 year of data at once
  • Loading branch information
avikalpg committed Jan 26, 2025
1 parent 2140f19 commit ae3345d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/UsernameSearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function UsernameSearchBar() {
'--Input-radius': `16px`,
'--Input-decoratorChildHeight': `28px`,
}}
onChange={(event) => setUsername(event.target.value)}
onChange={(event: React.ChangeEvent<HTMLInputElement>) => setUsername(event.target.value)}
/>
{(!errorMessage || errorMessage === "") ? null : (
<Typography color='danger' level='body-md' variant='soft' sx={{
Expand Down
2 changes: 1 addition & 1 deletion src/utils/generateContributionTimeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@ export const getSundayOfWeek = (date: Date) => {
export const getFirstDayOfYearFromLastDay = (lastDay: Date) => {
const firstDay = new Date(lastDay);
firstDay.setFullYear(lastDay.getFullYear() - 1);
firstDay.setDate(firstDay.getDate() + 1);
firstDay.setDate(firstDay.getDate() + 8);
return firstDay;
}

0 comments on commit ae3345d

Please sign in to comment.