Skip to content

Commit

Permalink
Do not pad Input number value with zeros
Browse files Browse the repository at this point in the history
  • Loading branch information
thesan committed Apr 11, 2024
1 parent 2dba2bf commit 6666c23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/src/common/components/forms/InputNumber.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const InputNumber = React.memo(({ name, isInBN = false, ...props }: Numbe
return ''
}
const numValue = isInBN ? divToNum(asBN(value), exp) : value / exp
return numValue.toFixed(props.decimalScale ?? 0)
return numValue.toString()
})}
onChange={(event, numValue) => {
if (!event) return
Expand Down

0 comments on commit 6666c23

Please sign in to comment.