fix issue showing ID without name when affirming delivery of an offer

This commit is contained in:
2025-12-30 18:28:54 -07:00
parent 24b636cd2f
commit f64846ae17
2 changed files with 14 additions and 4 deletions

View File

@@ -1127,10 +1127,14 @@ export default class ClaimView extends Vue {
}
openFulfillGiftDialog() {
const giverDid = libsUtil.offerGiverDid(
this.veriClaim as GenericCredWrapper<OfferClaim>,
);
// 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<OfferClaim>,
),
did: giverDid,
name: giverContact?.name || giverDid, // Use contact name if available, otherwise DID
};
// Determine recipient based on whether it's a project or person

View File

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