Skip to content

Commit

Permalink
fix: the thing (#12238)
Browse files Browse the repository at this point in the history
  • Loading branch information
rostislav-deriv authored Dec 14, 2023
1 parent 48c3fbd commit ccd780b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/wallets/src/hooks/useInputATMFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const useInputATMFormatter = (inputRef: React.RefObject<HTMLInputElement>, initi
if (Number(unFormatLocaleString(formattedValue, locale)) === 0) {
const pasted = (e.clipboardData || window.clipboardData).getData('Text');
const pastedValue = Number(unFormatLocaleString(pasted, locale));
if (!isNaN(pastedValue) && isFinite(pastedValue))
if (!isNaN(pastedValue) && isFinite(pastedValue) && pastedValue >= 0)
onChange({
target: {
value: `${pastedValue.toLocaleString(locale, {
Expand Down

1 comment on commit ccd780b

@vercel
Copy link

@vercel vercel bot commented on ccd780b Dec 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:

deriv-app – ./

deriv-app.binary.sx
deriv-app.vercel.app
deriv-app-git-master.binary.sx
binary.sx

Please sign in to comment.