ref: Little refactoring

This commit is contained in:
Maksim Eltyshev
2023-01-08 22:10:41 +01:00
parent 6021d67a00
commit b58b91baa1
8 changed files with 14 additions and 17 deletions

View File

@@ -13,7 +13,7 @@ const valuesValidator = (value) => {
return false;
}
if (value.username && !_.isString(value.username)) {
if (!_.isNil(value.username) && !_.isString(value.username)) {
return false;
}