update tasks; enhance an error message & some typescripts

This commit is contained in:
2024-02-02 12:25:04 -07:00
parent 5412625d05
commit 6aee93ca6c
3 changed files with 13 additions and 9 deletions

View File

@@ -688,7 +688,7 @@ export default class AccountViewView extends Vue {
) {
this.publicHex = identity.keys[0].publicKeyHex;
this.publicBase64 = Buffer.from(this.publicHex, "hex").toString("base64");
this.derivationPath = identity.keys[0].meta.derivationPath as string;
this.derivationPath = identity.keys[0].meta?.derivationPath as string;
db.settings.update(MASTER_SETTINGS_KEY, {
activeDid: identity.did,
@@ -974,7 +974,8 @@ export default class AccountViewView extends Vue {
if (identity) {
this.checkLimitsFor(identity);
} else {
this.limitsMessage = "You have no identifier.";
this.limitsMessage =
"You have no identifier, or your data has been corrupted.";
}
}