forked from mystiq/hydrogen-web
Merge pull request #481 from jryans/format-key-null
Check for null keys in settings view model
This commit is contained in:
commit
795a57dde1
1 changed files with 5 additions and 1 deletions
|
@ -77,7 +77,11 @@ export class SettingsViewModel extends ViewModel {
|
||||||
}
|
}
|
||||||
|
|
||||||
get fingerprintKey() {
|
get fingerprintKey() {
|
||||||
return formatKey(this._session.fingerprintKey);
|
const key = this._session.fingerprintKey;
|
||||||
|
if (!key) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return formatKey(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
get deviceId() {
|
get deviceId() {
|
||||||
|
|
Loading…
Reference in a new issue