add some detail for the map pin, plus other refactors

This commit is contained in:
2023-07-20 20:59:53 -06:00
parent c5b4921583
commit 7f48149d6f
3 changed files with 13 additions and 14 deletions

View File

@@ -341,17 +341,15 @@ export default class ContactsView extends Vue {
};
try {
const { headers, identity } = await this.getHeadersAndIdentity(
this.activeDid,
);
const { headers } = await this.getHeadersAndIdentity(this.activeDid);
const givenByUrl =
this.apiServer +
"/api/v2/report/gives?agentDid=" +
encodeURIComponent(identity.did);
encodeURIComponent(this.activeDid);
const givenToUrl =
this.apiServer +
"/api/v2/report/gives?recipientDid=" +
encodeURIComponent(identity.did);
encodeURIComponent(this.activeDid);
const [givenByMeResp, givenToMeResp] = await Promise.all([
this.axios.get(givenByUrl, { headers }),