Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MVJ-421 Fix review days in edit mode #553

Merged
merged 2 commits into from
Dec 11, 2024

Conversation

NC-jsAhonen
Copy link
Contributor

No description provided.

@NC-jsAhonen NC-jsAhonen changed the title Mvj 421 fix review days in edit mode MVJ-421 Fix review days in edit mode Dec 11, 2024
const date = new Date(startDate);
date.setDate(1);
date.setMonth(6);
date.setFullYear(date.getFullYear() + i * increment);
const totalCurrentIncrements = increments.slice(0, i + 1).reduce((a, b) => a + b, 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider using different argument variable names for reduce than a, b. In order they are accumulator, currentValue

Copy link
Contributor

@henrinie-nc henrinie-nc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, please review my comment about the reduce arguments

@NC-jsAhonen NC-jsAhonen merged commit 9445bd7 into develop Dec 11, 2024
3 checks passed
@NC-jsAhonen NC-jsAhonen deleted the MVJ-421-fix-review-days-in-edit-mode branch December 11, 2024 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants