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

(Fix) Update fields in reverse order and endTimes before startTimes #766

Merged
merged 1 commit into from
Apr 6, 2018

Conversation

fvictorio
Copy link
Contributor

Closes #728.

When updating fields, perform the transactions for the tiers in reverse order (the last tier first, then the second-to-last, etc.). Within tiers, update the end date before the start date. This way both the start and end date can be updated at the same time even if the new start date is after the old end date.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 1851

  • 15 of 24 (62.5%) changed or added relevant lines in 2 files are covered.
  • 278 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.2%) to 18.411%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/components/manage/index.js 0 3 0.0%
src/components/manage/utils.js 15 21 71.43%
Files with Coverage Reduction New Missed Lines %
src/components/manage/index.js 1 0.0%
src/components/crowdsale/utils.js 277 0.69%
Totals Coverage Status
Change from base Build 1848: -0.2%
Covered Lines: 476
Relevant Lines: 2227

💛 - Coveralls

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.

None yet

4 participants