Fix bug
This commit is contained in:
@ -24,7 +24,7 @@ export default async (value, verifier?: string) => {
|
||||
object.type !== 'Person' ||
|
||||
typeof object.preferredUsername !== 'string' ||
|
||||
!validateUsername(object.preferredUsername) ||
|
||||
(object.name != '' && !isValidName(object.name)) ||
|
||||
!isValidName(object.name == '' ? null : object.name) ||
|
||||
!isValidDescription(object.summary)
|
||||
) {
|
||||
throw new Error('invalid person');
|
||||
|
Reference in New Issue
Block a user