From f64846ae17f0c10d6709b2a2edef3d23962c744d Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Tue, 30 Dec 2025 18:28:54 -0700 Subject: [PATCH] fix issue showing ID without name when affirming delivery of an offer --- src/views/ClaimView.vue | 10 +++++++--- src/views/ProjectViewView.vue | 8 +++++++- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/views/ClaimView.vue b/src/views/ClaimView.vue index d2c3625cf..cc9009178 100644 --- a/src/views/ClaimView.vue +++ b/src/views/ClaimView.vue @@ -1127,10 +1127,14 @@ export default class ClaimView extends Vue { } openFulfillGiftDialog() { + const giverDid = libsUtil.offerGiverDid( + this.veriClaim as GenericCredWrapper, + ); + // Look up the giver contact to get their name + const giverContact = serverUtil.contactForDid(giverDid, this.allContacts); const giver: libsUtil.GiverReceiverInputInfo = { - did: libsUtil.offerGiverDid( - this.veriClaim as GenericCredWrapper, - ), + did: giverDid, + name: giverContact?.name || giverDid, // Use contact name if available, otherwise DID }; // Determine recipient based on whether it's a project or person diff --git a/src/views/ProjectViewView.vue b/src/views/ProjectViewView.vue index 420257449..a167d1063 100644 --- a/src/views/ProjectViewView.vue +++ b/src/views/ProjectViewView.vue @@ -1297,9 +1297,15 @@ export default class ProjectViewView extends Vue { claim: offer.fullClaim, issuer: offer.offeredByDid, }; + + const giverDid = libsUtil.offerGiverDid(offerClaimCred); + // Look up the giver contact to get their name + const giverContact = serverUtil.contactForDid(giverDid, this.allContacts); const giver: libsUtil.GiverReceiverInputInfo = { - did: libsUtil.offerGiverDid(offerClaimCred), + did: giverDid, + name: giverContact?.name || giverDid, // Use contact name if available, otherwise DID }; + (this.$refs.giveDialogToThis as GiftedDialog).open( giver, {