forked from jsnbuchanan/crowd-funder-for-time-pwa
fix issue showing ID without name when affirming delivery of an offer
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user