mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2025-11-05 11:56:37 +00:00
Fixed the display of numbers greater than 1k
This commit is contained in:
parent
a82dda856d
commit
5549639a70
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue