Skip to content

Commit

Permalink
round numbers to 10 decimal points
Browse files Browse the repository at this point in the history
  • Loading branch information
wolflu05 committed Sep 19, 2024
1 parent 25f50d7 commit 9338db5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export const InputGroup = <T extends any[]>({ state }: { state: UseInputGroupSta
size="xs"
disabled={input.disabled}
label={input.label}
value={value[key]}
value={Math.round(value[key] * 10 ** 10) / 10 ** 10}
onChange={(value) => setValue(key, value)}
decimalScale={10}
onBlur={() => state.onBlur?.(key, value[key], value, value, state)}
Expand Down

0 comments on commit 9338db5

Please sign in to comment.