diff options
author | Christopher Ng <chrng8@gmail.com> | 2021-09-01 00:58:31 +0300 |
---|---|---|
committer | nextcloud-command <nextcloud-command@users.noreply.github.com> | 2021-09-08 00:16:18 +0300 |
commit | 765ac6d2e67b6206dc98069277b8a4a6b461cbca (patch) | |
tree | 337f5d7bf95f2f507c6998223867a0f19f4f5322 /apps/settings/src | |
parent | acb6c29646d52b1dd914cb180188dfcd5ef01687 (diff) |
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>
Diffstat (limited to 'apps/settings/src')
-rw-r--r-- | apps/settings/src/utils/validate.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/settings/src/utils/validate.js b/apps/settings/src/utils/validate.js index e2c7d82da2f..a0edb87dfa8 100644 --- a/apps/settings/src/utils/validate.js +++ b/apps/settings/src/utils/validate.js @@ -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 } |