mirror of
https://github.com/zhigang1992/wallet.git
synced 2026-01-12 22:53:27 +08:00
fix: unwanted decimals in sats, closes #3836
This commit is contained in:
@@ -24,9 +24,9 @@ export function useAverageBitcoinFeeRates() {
|
||||
const fees = feeEstimates.filter(isFulfilled).map(result => result.value);
|
||||
|
||||
return {
|
||||
fastestFee: calculateMeanAverage(fees.map(fee => fee.fast)),
|
||||
halfHourFee: calculateMeanAverage(fees.map(fee => fee.medium)),
|
||||
hourFee: calculateMeanAverage(fees.map(fee => fee.slow)),
|
||||
fastestFee: calculateMeanAverage(fees.map(fee => fee.fast)).decimalPlaces(0),
|
||||
halfHourFee: calculateMeanAverage(fees.map(fee => fee.medium)).decimalPlaces(0),
|
||||
hourFee: calculateMeanAverage(fees.map(fee => fee.slow)).decimalPlaces(0),
|
||||
};
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user