fix: unwanted decimals in sats, closes #3836

This commit is contained in:
kyranjamie
2023-06-10 17:27:09 +02:00
committed by kyranjamie
parent 5d51b1eea8
commit e1987ed674

View File

@@ -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),
};
},
});