From 941d93f6db9d16978a322edbb17948c4857f53e5 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Sat, 20 Dec 2025 20:20:10 -0700 Subject: [PATCH] fix: disallow affirming delivery of orders where giver is hidden --- src/libs/util.ts | 2 +- src/views/ClaimView.vue | 31 +++++++++++++++++++++++++++---- 2 files changed, 28 insertions(+), 5 deletions(-) diff --git a/src/libs/util.ts b/src/libs/util.ts index 4790714db4..79a7072092 100644 --- a/src/libs/util.ts +++ b/src/libs/util.ts @@ -472,7 +472,7 @@ export function offerGiverDid( if (giver && !serverUtil.isHiddenDid(giver)) { return giver; } - return giver; + return undefined; } /** diff --git a/src/views/ClaimView.vue b/src/views/ClaimView.vue index b7f4d0561b..d2c3625cfa 100644 --- a/src/views/ClaimView.vue +++ b/src/views/ClaimView.vue @@ -223,14 +223,23 @@
@@ -1103,6 +1112,20 @@ export default class ClaimView extends Vue { }); } + handleAffirmDeliveryClick() { + if (!this.isRegistered) { + this.notify.error("You must be registered to affirm delivery."); + return; + } + if (!libsUtil.canFulfillOffer(this.veriClaim, this.isRegistered)) { + this.notify.error( + "You cannot see all the information in this offer so you cannot affirm delivery.", + ); + return; + } + this.openFulfillGiftDialog(); + } + openFulfillGiftDialog() { const giver: libsUtil.GiverReceiverInputInfo = { did: libsUtil.offerGiverDid(