mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 17:56:01 +03:00
Add null check
This commit is contained in:
parent
6e4a2b7efe
commit
d1caadec9f
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ export class SetupEncryptionStore extends EventEmitter {
|
|||
|
||||
async fetchKeyInfo() {
|
||||
const keys = await MatrixClientPeg.get().isSecretStored('m.cross_signing.master', false);
|
||||
if (Object.keys(keys).length === 0) {
|
||||
if (keys === null || Object.keys(keys).length === 0) {
|
||||
this.keyId = null;
|
||||
this.keyInfo = null;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue