add marker in feed to show where they've seen claims, plus other small clean-up

This commit is contained in:
2023-06-23 20:17:54 -06:00
parent 639f630436
commit 5747404fd6
12 changed files with 119 additions and 38 deletions

View File

@@ -127,7 +127,10 @@ export default class NewEditProjectView extends Vue {
} else {
const accounts = await accountsDB.accounts.toArray();
const account = R.find((acc) => acc.did === this.activeDid, accounts);
const identity = JSON.parse(account?.identity || "undefined");
const identity = JSON.parse(account?.identity || "null");
if (!identity) {
throw new Error("No identity found.");
}
this.LoadProject(identity);
}
}
@@ -259,7 +262,10 @@ export default class NewEditProjectView extends Vue {
} else {
const accounts = await accountsDB.accounts.toArray();
const account = R.find((acc) => acc.did === this.activeDid, accounts);
const identity = JSON.parse(account?.identity || "undefined");
const identity = JSON.parse(account?.identity || "null");
if (!identity) {
throw new Error("No identity found.");
}
this.SaveProject(identity);
}
}