This commit is contained in:
syuilo
2018-04-06 22:15:31 +09:00
parent bc06c66407
commit 2b02655a3f
2 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ export function validatePassword(password: string): boolean {
}
export function isValidName(name: string): boolean {
return typeof name == 'string' && name.length < 30 && name.trim() != '';
return name === null || (typeof name == 'string' && name.length < 30 && name.trim() != '');
}
export function isValidDescription(description: string): boolean {