Skip to content

Commit

Permalink
πŸ› Fix AMM input issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bal7hazar committed Sep 22, 2024
1 parent 87c0098 commit 27d8754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/ui/components/bank/ResourceBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const ResourceBar = ({
};

const handleAmountChange = (amount: string) => {
!disableInput && setAmount && setAmount(parseInt(amount) || 0);
!disableInput && setAmount && setAmount(parseInt(amount.replaceAll(" ", "")) || 0);
};

const hasLordsFees = lordsFee > 0 && resourceId === ResourcesIds.Lords;
Expand Down

0 comments on commit 27d8754

Please sign in to comment.