edit registration
This commit is contained in:
@@ -38,8 +38,8 @@ export function createValidationSchema(config: ValidationConfig, accountType?: '
|
||||
.trim();
|
||||
}
|
||||
|
||||
// fullName
|
||||
if (config.companyName && accountType !== 'b2c') {
|
||||
// companyName
|
||||
if (config.companyName && accountType === 'b2b') {
|
||||
schema.companyName = z
|
||||
.string()
|
||||
.trim()
|
||||
|
||||
Reference in New Issue
Block a user