Skip to content

Commit

Permalink
Remove unnecessary conversion to bigint
Browse files Browse the repository at this point in the history
  • Loading branch information
kkosiorowska committed Apr 10, 2024
1 parent 3265221 commit 1f55b26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function StakeFormModal({
<StakeDetails
currency="bitcoin"
minTokenAmount={minStakeAmount}
maxTokenAmount={BigInt(tokenBalance)}
maxTokenAmount={tokenBalance}
/>
<FormSubmitButton mt={4}>Stake</FormSubmitButton>
</TokenAmountForm>
Expand Down
4 changes: 1 addition & 3 deletions dapp/src/components/shared/TokenBalanceInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,7 @@ export default function TokenBalanceInput({
placeholder={placeholder}
{...inputProps}
value={
amount
? fixedPointNumberToString(BigInt(amount), decimals)
: undefined
amount ? fixedPointNumberToString(amount, decimals) : undefined
}
onValueChange={(values: NumberFormatInputValues) =>
handleValueChange(values.value)
Expand Down

0 comments on commit 1f55b26

Please sign in to comment.