fix more paths where there may be no ID

This commit is contained in:
2023-12-04 15:54:03 -07:00
parent a8d362c14d
commit a7fbbbd4cd
3 changed files with 12 additions and 20 deletions

View File

@@ -171,13 +171,7 @@ export default class HomeView extends Vue {
.equals(activeDid)
.first()) as Account;
const identity = JSON.parse(account?.identity || "null");
if (!identity) {
throw new Error(
"Attempted to load Give records with no identity available.",
);
}
return identity;
return identity; // may be null
}
public async getHeaders(identity: IIdentifier) {