fix LocalUser test
This commit is contained in:
parent
b3e896d9fc
commit
060cdf3310
@ -15,7 +15,14 @@ export function isUserNameValid(value: unknown): boolean {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function areCharacterLayersValid(value: string[] | null): boolean {
|
export function areCharacterLayersValid(value: string[] | null): boolean {
|
||||||
if (!value || !value.length) return false;
|
if (!value || !value.length) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
for (const layerName of value) {
|
||||||
|
if (layerName.length === 0 || layerName === " ") {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user