Skip to content

Commit

Permalink
Merge pull request #6 from EXPITC/develop
Browse files Browse the repository at this point in the history
fix: number onChange strictness
  • Loading branch information
EXPITC authored Jun 14, 2023
2 parents cd09e82 + a03d339 commit 48fae4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Checkout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ const CheckoutPage = () => {
onChange={(e) => {
// prevent negative number and set limit 4 digit
e.target.value =
Math.abs(e.target.value) >= 0
e.target.value > 0
? Math.abs(e.target.value.slice(0, 13))
: undefined;

Expand All @@ -302,7 +302,7 @@ const CheckoutPage = () => {
onChange={(e) => {
// prevent negative number and set limit 4 digit
e.target.value =
Math.abs(e.target.value) >= 0
e.target.value > -1
? Math.abs(e.target.value.slice(0, 4))
: undefined;
handleChange(e);
Expand Down

1 comment on commit 48fae4e

@vercel
Copy link

@vercel vercel bot commented on 48fae4e Jun 14, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

ways-beans – ./

ways-beans-expitc.vercel.app
ways-beans.vercel.app
ways-beans-git-main-expitc.vercel.app

Please sign in to comment.