Budget items: bar not filled with color under some conditions
STR
- assign a positive threshold budget to a category
- make sure that the computed amount for this category is negative
- switch sections to the budget section
Observed
Just after switching: https://benj.me/pub/kresus-bug-budget-color.png
If you toggle the sign for the category's threshold: https://benj.me/pub/kresus-bug-budget-color-correct.png
Expected
The color should be correct even just after switching to the section. This looks like something is correctly updated, but not correctly initialized.
Assigning @nicofrand since he kindly proposed to take a look :)