fix LocalUser test

This commit is contained in:
Hanusiak Piotr 2022-03-10 09:50:41 +01:00
parent b3e896d9fc
commit 060cdf3310

View File

@ -15,7 +15,14 @@ export function isUserNameValid(value: unknown): 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;
}