From 0ca5a14eb891e21e9b93552b90a0050ecce82e4f Mon Sep 17 00:00:00 2001 From: BitcoinVM Date: Tue, 30 Jan 2024 03:14:14 +0100 Subject: [PATCH] tofix --- src/components/ValidatorCommissionRate.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ValidatorCommissionRate.vue b/src/components/ValidatorCommissionRate.vue index 57b7ed6f..e8b292c3 100644 --- a/src/components/ValidatorCommissionRate.vue +++ b/src/components/ValidatorCommissionRate.vue @@ -91,7 +91,7 @@ const chartConfig = computed(() => { offsetY: -15, fontWeight: 500, fontSize: '2.125rem', - formatter: (value: unknown) => `${rate.value}%`, + formatter: (value: unknown) => `${rate.value.toFixed(1)}%`, color: primaryText, }, total: { @@ -99,7 +99,7 @@ const chartConfig = computed(() => { label: 'Commission Rate', fontSize: '1rem', color: secondaryText, - formatter: () => `${rate.value}%`, + formatter: () => `${rate.value.toFixed(1)}%`, }, }, },