Skip to content

Commit

Permalink
fix: Not able to claim boost reward (#4710)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaituVR authored May 7, 2024
1 parent 39d3601 commit 295e578
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/components/SpaceProposalBoostClaimModalItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ const reward = computed(() => {
props.boost.token.decimals
);
return formatNumber(
Number(amountDecimal),
getNumberFormatter({ maximumFractionDigits: 8 }).value
);
return amountDecimal;
});
const claim = computed(() => {
Expand Down Expand Up @@ -84,7 +81,13 @@ async function handleClaimAndReload() {
{{ hasClaimed ? 'Claimed' : 'Reward' }}
</span>
<TuneTag class="text-skin-heading text-base">
{{ reward }} {{ props.boost.token.symbol }}
{{
formatNumber(
Number(reward),
getNumberFormatter({ maximumFractionDigits: 8 }).value
)
}}
{{ props.boost.token.symbol }}
</TuneTag>
<div class="mt-1 flex items-center flex-wrap">
<span
Expand Down

0 comments on commit 295e578

Please sign in to comment.