fix many, many more type errors

This commit is contained in:
2023-09-03 10:02:17 -06:00
parent b8aaffbf8d
commit b05b602acd
15 changed files with 170 additions and 97 deletions

View File

@@ -85,12 +85,12 @@ export default class IdentitySwitcherView extends Vue {
Constants = AppString;
public accounts: AccountsSchema;
public activeDid;
public firstName;
public lastName;
public activeDid = "";
public firstName = "";
public lastName = "";
public otherIdentities = [];
public async getIdentity(activeDid) {
public async getIdentity(activeDid: string) {
await accountsDB.open();
const account = await accountsDB.accounts
.where("did")
@@ -128,7 +128,7 @@ export default class IdentitySwitcherView extends Vue {
}
} catch (err) {
if (
err.message ===
err?.message ===
"Attempted to load account records with no identity available."
) {
this.limitsMessage = "No identity.";
@@ -151,7 +151,7 @@ export default class IdentitySwitcherView extends Vue {
}
}
async switchAccount(did: string) {
async switchAccount(did?: string) {
// 0 means none
if (did === "0") {
did = undefined;