forked from jsnbuchanan/crowd-funder-for-time-pwa
Updates to contacts UI. Sweep for buildIdentity and buildHeaders
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
@click="openDialog(contact)"
|
||||
class="block w-full text-center text-md uppercase bg-slate-500 text-white px-1.5 py-2 rounded-md mb-2"
|
||||
>
|
||||
{{ contact.name }}
|
||||
{{ contact.name || "(no name)" }}
|
||||
</button>
|
||||
<span v-if="allContacts.length > 0"> or </span>
|
||||
<button @click="openDialog()" class="text-blue-500">
|
||||
@@ -269,14 +269,7 @@ export default class HomeView extends Vue {
|
||||
return;
|
||||
}
|
||||
|
||||
const account = this.allAccounts.find((acc) => acc.did === this.activeDid);
|
||||
const identity = JSON.parse(account?.identity || "null");
|
||||
|
||||
if (!identity) {
|
||||
throw new Error(
|
||||
"An ID is chosen but there are no keys for it so it cannot be used to talk with the service.",
|
||||
);
|
||||
}
|
||||
const identity = await this.getIdentity(this.activeDid);
|
||||
|
||||
createAndSubmitGive(
|
||||
this.axios,
|
||||
|
||||
Reference in New Issue
Block a user