Move check to fingerprintKey
This commit is contained in:
parent
284ec8a74f
commit
3e5cc07440
1 changed files with 5 additions and 4 deletions
|
@ -28,9 +28,6 @@ class PushNotificationStatus {
|
|||
}
|
||||
|
||||
function formatKey(key) {
|
||||
if (!key) {
|
||||
return null;
|
||||
}
|
||||
const partLength = 4;
|
||||
const partCount = Math.ceil(key.length / partLength);
|
||||
let formattedKey = "";
|
||||
|
@ -80,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() {
|
||||
|
|
Reference in a new issue