forked from jsnbuchanan/crowd-funder-for-time-pwa
consolidate getIdentity & remove dups
This commit is contained in:
@@ -492,16 +492,6 @@ export default class ProjectViewView extends Vue {
|
||||
this.loadProject(this.projectId, this.activeDid);
|
||||
}
|
||||
|
||||
public async getIdentity(activeDid: string) {
|
||||
await accountsDB.open();
|
||||
const account = (await accountsDB.accounts
|
||||
.where("did")
|
||||
.equals(activeDid)
|
||||
.first()) as Account;
|
||||
const identity = JSON.parse(account?.identity || "null");
|
||||
return identity;
|
||||
}
|
||||
|
||||
onEditClick() {
|
||||
localStorage.setItem("projectId", this.projectId as string);
|
||||
const route = {
|
||||
|
||||
Reference in New Issue
Block a user