diff --git a/src/components/dashboard/Inflation.vue b/src/components/dashboard/Inflation.vue index 1e1a134fe..963724f21 100644 --- a/src/components/dashboard/Inflation.vue +++ b/src/components/dashboard/Inflation.vue @@ -88,12 +88,12 @@ export default defineComponent({ const numberFromPercentage = (value?: number): number | string => value !== undefined ? value * 100 : '--'; - const adjustableStakersPercentage = computed(() => - Number( - ( - realizedAdjustableStakersPart.value / inflationParameters.value.adjustableStakersPart - ).toFixed(3) - ) + const adjustableStakersPercentage = computed( + () => + Math.round( + (realizedAdjustableStakersPart.value / inflationParameters.value.adjustableStakersPart) * + 100 + ) / 100 ); watch( diff --git a/src/components/dashboard/InflationRateChart.vue b/src/components/dashboard/InflationRateChart.vue index 79c855e0f..64c411dda 100644 --- a/src/components/dashboard/InflationRateChart.vue +++ b/src/components/dashboard/InflationRateChart.vue @@ -22,7 +22,7 @@