mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
Merge pull request #481 from jryans/format-key-null
Check for null keys in settings view model
This commit is contained in:
commit
795a57dde1
@ -77,7 +77,11 @@ export class SettingsViewModel extends ViewModel {
|
||||
}
|
||||
|
||||
get fingerprintKey() {
|
||||
return formatKey(this._session.fingerprintKey);
|
||||
const key = this._session.fingerprintKey;
|
||||
if (!key) {
|
||||
return null;
|
||||
}
|
||||
return formatKey(key);
|
||||
}
|
||||
|
||||
get deviceId() {
|
||||
|
Loading…
Reference in New Issue
Block a user