From 295e5784cd3301528ca5a8479154fe56b5c970b2 Mon Sep 17 00:00:00 2001 From: Chaitanya Date: Tue, 7 May 2024 19:40:40 +0530 Subject: [PATCH] fix: Not able to claim boost reward (#4710) --- src/components/SpaceProposalBoostClaimModalItem.vue | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/components/SpaceProposalBoostClaimModalItem.vue b/src/components/SpaceProposalBoostClaimModalItem.vue index 08bace57..7b48b006 100644 --- a/src/components/SpaceProposalBoostClaimModalItem.vue +++ b/src/components/SpaceProposalBoostClaimModalItem.vue @@ -32,10 +32,7 @@ const reward = computed(() => { props.boost.token.decimals ); - return formatNumber( - Number(amountDecimal), - getNumberFormatter({ maximumFractionDigits: 8 }).value - ); + return amountDecimal; }); const claim = computed(() => { @@ -84,7 +81,13 @@ async function handleClaimAndReload() { {{ hasClaimed ? 'Claimed' : 'Reward' }} - {{ reward }} {{ props.boost.token.symbol }} + {{ + formatNumber( + Number(reward), + getNumberFormatter({ maximumFractionDigits: 8 }).value + ) + }} + {{ props.boost.token.symbol }}