arvid-e 5 месяцев назад
Родитель
Сommit
93bcb2943d
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      apps/app/src/features/contribution-graph/utils/contribution-graph-utils.ts

+ 4 - 1
apps/app/src/features/contribution-graph/utils/contribution-graph-utils.ts

@@ -7,7 +7,10 @@ export const getISOWeekId = (date: Date): string => {
   return format(date, "RRRR-'W'II");
   return format(date, "RRRR-'W'II");
 };
 };
 
 
-export const getDaysDifference = (dateFrom: Date, dateTo: Date = new Date()): number => {
+export const getDaysDifference = (
+  dateFrom: Date,
+  dateTo: Date = new Date(),
+): number => {
   const diffDays = differenceInDays(dateFrom, dateTo);
   const diffDays = differenceInDays(dateFrom, dateTo);
   return Math.max(0, diffDays);
   return Math.max(0, diffDays);
 };
 };