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, {