We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49c943a commit a7d284cCopy full SHA for a7d284c
src/features/Account/validationSchema.ts
@@ -24,7 +24,8 @@ const getValidationSchema = (isCreate: boolean) => {
24
(value) => {
25
if (!value) return false;
26
const parsedValue = value?.replace(/\D/g, '');
27
- return !parsedValue || (parsedValue.length > 10 && parsedValue.length < 14);
+ if (!parsedValue) return false;
28
+ return (parsedValue.length > 10 && parsedValue.length < 14);
29
}
30
),
31
age: number()
0 commit comments