Browse Source

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 5 years ago
committed by nextcloud-command
parent
commit
765ac6d2e6
  1. 4
      apps/settings/js/vue-settings-personal-info.js
  2. 2
      apps/settings/js/vue-settings-personal-info.js.map
  3. 5
      apps/settings/src/utils/validate.js

4
apps/settings/js/vue-settings-personal-info.js
File diff suppressed because it is too large
View File

2
apps/settings/js/vue-settings-personal-info.js.map
File diff suppressed because it is too large
View File

5
apps/settings/src/utils/validate.js

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