Skip to content

Commit

Permalink
Limit length of input amount
Browse files Browse the repository at this point in the history
  • Loading branch information
harryttd committed Oct 5, 2023
1 parent 932927c commit 61a0742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Faucet/FaucetRequestButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default function FaucetRequestButton({
}

const updateAmount = (e: React.ChangeEvent<HTMLInputElement>) => {
const value = Number(e.target.value)
const value = Number(e.target.value.slice(0, 16))
if (value >= minTez && value <= maxTez) {
setAmount(value)
}
Expand Down

0 comments on commit 61a0742

Please sign in to comment.