Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
chore: Remove console calls
Browse files Browse the repository at this point in the history
  • Loading branch information
ganlhi committed Apr 21, 2023
1 parent e2ed97c commit 906cfec
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/react-forms/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,11 @@ function buildValidationRulesNumber(
...(baseRules || {}),
validate: {
...(baseRules?.validate || {}),
number: (value: number) => {
console.log(value, typeof value, isNaN(value));
return value === undefined ||
number: (value: number) =>
value === undefined ||
!isNaN(value) ||
texts?.errors?.number ||
false;
},
false,
},
};
}
Expand Down

0 comments on commit 906cfec

Please sign in to comment.