We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc35b1e commit b1927c0Copy full SHA for b1927c0
2 files changed
components/modules/rollup/RollupCharts.vue
@@ -101,7 +101,7 @@ const seriesConfig = [
101
series: feeSeries,
102
title: "Fee spent",
103
tooltipLabel: "Spent",
104
- yAxisFormatter: (val) => tia(val, 0),
+ yAxisFormatter: (val) => tia(val, 1),
105
tooltipValueFormatter: tia,
106
},
107
{
services/utils/amounts.js
@@ -68,7 +68,7 @@ export const utia = (amount) => {
68
export const truncateDecimalPart = (amount, decimal = 6) => {
69
if (!amount) return 0
70
71
- const numberString = amount.toFixed(decimal).replace(/\.?0+$/, "")
+ const numberString = amount.toFixed(decimal).replace(/\.0+$/, "")
72
73
return parseFloat(numberString)
74
}
0 commit comments