Skip to content

Commit

Permalink
Fix input overflow issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jonator committed Aug 18, 2022
1 parent fc757c5 commit de08233
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web/components/trade-clipboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ export const TradeClipboard: FunctionComponent<{
placeholder="0"
onChange={(e) => {
e.preventDefault();
if (Number(e.target.value) <= Number.MAX_SAFE_INTEGER) {
if (e.target.value.length < 17) {
tradeTokenInConfig.setAmount(e.target.value);
}
}}
Expand Down Expand Up @@ -534,7 +534,7 @@ export const TradeClipboard: FunctionComponent<{
}
>
<div
className="flex items-center place-content-between transition-transform"
className="flex items-center place-content-between transition-all"
style={
isAnimatingSwitch
? {
Expand Down

2 comments on commit de08233

@vercel
Copy link

@vercel vercel bot commented on de08233 Aug 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on de08233 Aug 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.