Fixed the display of numbers greater than 1k

This commit is contained in:
Thauan Amorim 2025-07-16 07:52:24 -03:00
parent a82dda856d
commit 5549639a70

View file

@ -29,7 +29,7 @@ public class FeeRangeSlider extends Slider {
public String toString(Double object) {
Double feeRate = DOUBLE_FEE_RATES_RANGE.get(object.intValue());
if(isDoubleFeeRange() && feeRate >= 1000) {
return feeRate / 1000 + "k";
return feeRate.longValue() / 1000 + "k";
}
return feeRate < 1 ? Double.toString(feeRate) : String.format("%.0f", feeRate);
}