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