Fix invalid prop type for isValidSection

Signed-off-by: Christopher Ng <chrng8@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
pull/28679/head
Christopher Ng 2021-08-31 21:58:31 +07:00 committed by nextcloud-command
parent acb6c29646
commit 765ac6d2e6
3 changed files with 6 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -59,10 +59,11 @@ export function validateEmail(input) {
/**
* Validate the language input
*
* @param {string} input the input
* @param {object} input the input
* @returns {boolean}
*/
export function validateLanguage(input) {
return input.code !== ''
&& input.name
&& input.name !== ''
&& input.name !== undefined
}