Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexShukel committed Sep 12, 2023
1 parent 8bc9f27 commit 41b1454
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/x/src/useIntegerField.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ export const useIntegerField = ({

const parse = useCallback(
(text: string) => {
text = text.trim();

if (customParse) {
return customParse(text);
}

text = text.trim();

if (text.length === 0) {
return null;
}
Expand Down

0 comments on commit 41b1454

Please sign in to comment.