Skip to content

Create a separate component to display amounts + ensure 0.00 balance is always the same color

Antoine requested to merge ZeHiro/kresus:consistant-0-balance into master

This MR fixes a display inconsistancy in the way balance is displayed:

balance-class

In this example, the balance is roughly -0.0000000001 (so it is displayed with negative class), but in the case it was 0.00000001 it would have positive class. The MR ensures, that 0.00 is always displayed the same, independantly of what the sign 0 is.

The color to apply to amount 0.00 can be discussed: should it be displayed with class negative or not ?

Edited by Antoine

Merge request reports