Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dhavalveera committed Jun 20, 2024
1 parent fe949e3 commit 34a1247
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/src/components/Datepicker/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const getFirstDayOfTheMonth = (date: Date, weekStart: WeekStart): Date =>
return addDays(firstDayOfMonth, -diff);
};

export const getWeekDays = (lang: string = "en-US", weekStart: WeekStart): string[] => {
export const getWeekDays = (lang: string, weekStart: WeekStart): string[] => {
const weekdays: string[] = [];
const date = new Date(0);
date.setDate(date.getDate() - date.getDay() + weekStart);
Expand Down

0 comments on commit 34a1247

Please sign in to comment.