remove logs
This commit is contained in:
@@ -97,13 +97,10 @@ export function createValidationSchema(config: ValidationConfig, accountType?: '
|
||||
|
||||
// phone
|
||||
if (config.phone) {
|
||||
console.log('validate phone');
|
||||
|
||||
let phoneSchema = z.string();
|
||||
|
||||
// Минимальная длина
|
||||
if (config.phone.minSize) {
|
||||
console.log(config.phone.minSize.value);
|
||||
phoneSchema = phoneSchema.min(config.phone.minSize.value, {
|
||||
error: config.phone.minSize.message
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user