CSR-886: remove superfluous logic
This commit is contained in:
parent
686355a22b
commit
199ca42189
1 changed files with 1 additions and 1 deletions
|
|
@ -171,7 +171,7 @@ export default {
|
|||
},
|
||||
getNextWeekSunday(date) {
|
||||
const dayOfWeek = date.getDay();
|
||||
const daysUntilNextSunday = dayOfWeek === 0 ? 7 : 7 - dayOfWeek; // Calculate the number of days until the next Sunday
|
||||
const daysUntilNextSunday = 7 - dayOfWeek; // Calculate the number of days until the next Sunday
|
||||
// Clone the given date and add the remaining days until Sunday
|
||||
const nextSunday = new Date(date);
|
||||
nextSunday.setDate(date.getDate() + daysUntilNextSunday);
|
||||
|
|
|
|||
Loading…
Reference in a new issue