AutarkLabs / open-enterprise

A suite of apps that includes allocation, dot voting, issue curation, and other planning tools so organizations can collectively budget and design custom reward & bounty systems.
GNU General Public License v3.0
92 stars 54 forks source link

Allocations/NewAllocation: fix when no budget id #1794

Closed chadoh closed 4 years ago

chadoh commented 4 years ago

The main problem was that we were calculating how to render AmountField even when we didn't actually want to render it, and rendering AmountField requires a budget to be set in order to calculate the Remaining Funds.

This cleans up the render function by moving these inline renders to their own components instead.