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 crash in valuation when there are no budgets #3128

Merged
merged 3 commits into from
Dec 21, 2018

Conversation

javierm
Copy link
Member

@javierm javierm commented Dec 21, 2018

References

Objectives

Fix a crash in the valuation section when there are no budgets.

Visual Changes

After these changes:
There are no budgets appears written in the valuation section

We were assigning the same variable twice in a row, making the first
assignment useless.
Rails automatically calls the `id` method inside scopes and the variable
name makes more sense if it represents investments instead of the number
of investments.
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

2 participants