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(