diff --git a/core/js/js.js b/core/js/js.js index 361d2ab9b7..79f268ea6c 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -1775,10 +1775,8 @@ OC.PasswordConfirmation = { function (result, password) { if (result && password !== '') { self._confirmPassword(password, config); - } else { - if (rejectCallback && typeof rejectCallback === 'function') { - rejectCallback() - } + } else if (_.isFunction(rejectCallback)) { + rejectCallback() } }, true,