react-weekly-planning 1.0.37 → 1.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lib/utils.js CHANGED
@@ -122,12 +122,7 @@ export function getWeekDays(jump, timeZone) {
122
122
  for (let i = 0; i < 7; i++) {
123
123
  const day = getCalendarDate(timeZone);
124
124
  const diff = i - currentDayOfWeek;
125
- if (currentDayOfWeek === 0) {
126
- day.setDate(currentDate.getDate() + diff + jump - 7);
127
- }
128
- else {
129
- day.setDate(currentDate.getDate() + diff + jump);
130
- }
125
+ day.setDate(currentDate.getDate() + diff + jump);
131
126
  const formattedDay = `${days[day.getDay()]}. ${day.getDate()}, ${month[day.getMonth()]} ${day.getFullYear()}`;
132
127
  weekDays.push({
133
128
  day: days[day.getDay()],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-weekly-planning",
3
- "version": "1.0.37",
3
+ "version": "1.0.38",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/types/index.d.ts",
6
6
  "exports": {