Skip to content

Commit

Permalink
fixup! fixup! feat: fix token decimal bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
RasenGUY committed Dec 6, 2023
1 parent a05162b commit 094b873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/modals/ClaimModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export const ClaimModal = ({ hide, game, wallet, tokenDecimals
<NormalText tw="dark:text-shinishi">Net winnings</NormalText>
{
!calculateFeesQuery.data ? 'calculating...' : <NormalText>{
formatUnits(calculateFeesQuery.data[sendAmountIndex], tokenDecimals)
parseFloat(String(Number(formatUnits(calculateFeesQuery.data[sendAmountIndex], tokenDecimals)) - Number(formatUnits(game.wager.wagerAmount, tokenDecimals)))).toFixed(0)
} {game.wager.wagerCurrency}</NormalText>
}
</GradientDiv>
Expand Down

0 comments on commit 094b873

Please sign in to comment.