diff --git a/apps/files_sharing/src/mixins/SharesMixin.js b/apps/files_sharing/src/mixins/SharesMixin.js index 3f876ab3dc8..19d90ab0cf6 100644 --- a/apps/files_sharing/src/mixins/SharesMixin.js +++ b/apps/files_sharing/src/mixins/SharesMixin.js @@ -173,9 +173,8 @@ export default { if (this.passwordProtectedState !== undefined) { return this.passwordProtectedState } - return this.share.newPassword !== undefined - || this.share.password !== undefined - + return typeof this.share.newPassword === 'string' + || typeof this.share.password === 'string' }, async set(enabled) { if (enabled) {