Skip to content

Commit 295e578

Browse files
authored
fix: Not able to claim boost reward (#4710)
1 parent 39d3601 commit 295e578

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/components/SpaceProposalBoostClaimModalItem.vue

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@ const reward = computed(() => {
3232
props.boost.token.decimals
3333
);
3434
35-
return formatNumber(
36-
Number(amountDecimal),
37-
getNumberFormatter({ maximumFractionDigits: 8 }).value
38-
);
35+
return amountDecimal;
3936
});
4037
4138
const claim = computed(() => {
@@ -84,7 +81,13 @@ async function handleClaimAndReload() {
8481
{{ hasClaimed ? 'Claimed' : 'Reward' }}
8582
</span>
8683
<TuneTag class="text-skin-heading text-base">
87-
{{ reward }} {{ props.boost.token.symbol }}
84+
{{
85+
formatNumber(
86+
Number(reward),
87+
getNumberFormatter({ maximumFractionDigits: 8 }).value
88+
)
89+
}}
90+
{{ props.boost.token.symbol }}
8891
</TuneTag>
8992
<div class="mt-1 flex items-center flex-wrap">
9093
<span

0 commit comments

Comments
 (0)