forked from jsnbuchanan/crowd-funder-for-time-pwa
Considerable cleanup and merge
This commit is contained in:
@@ -172,7 +172,9 @@ export default class ContactsView extends Vue {
|
||||
const account = R.find((acc) => acc.did === activeDid, accounts);
|
||||
const identity = JSON.parse(account?.identity || "null");
|
||||
if (!identity) {
|
||||
throw new Error("No identity found.");
|
||||
throw new Error(
|
||||
"An ID is chosen but there are no keys for it so it cannot be used to talk with the service."
|
||||
);
|
||||
}
|
||||
|
||||
// load all the time I have given to them
|
||||
@@ -271,7 +273,9 @@ export default class ContactsView extends Vue {
|
||||
const account = R.find((acc) => acc.did === this.activeDid, accounts);
|
||||
const identity = JSON.parse(account?.identity || "null");
|
||||
if (!identity) {
|
||||
throw new Error("No identity found.");
|
||||
throw new Error(
|
||||
"An ID is chosen but there are no keys for it so it cannot be used to talk with the service."
|
||||
);
|
||||
}
|
||||
if (identity.keys[0].privateKeyHex !== null) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
|
||||
Reference in New Issue
Block a user