Fixed more gifting use cases

This commit is contained in:
Jose Olarte III
2025-06-18 19:58:10 +08:00
parent fa21660fd1
commit eb7605991c

View File

@@ -227,11 +227,11 @@
query: { query: {
amountInput, amountInput,
description, description,
giverDid: giver?.did, giverDid: showProjects ? undefined : giver?.did,
giverName: giver?.name, giverName: giver?.name,
offerId, offerId,
fulfillsProjectId: toProjectId, fulfillsProjectId: showProjects && isFromProjectView ? giver?.handleId : toProjectId,
providerProjectId: fromProjectId, providerProjectId: showProjects ? giver?.handleId : fromProjectId,
recipientDid: receiver?.did, recipientDid: receiver?.did,
recipientName: receiver?.name, recipientName: receiver?.name,
unitCode, unitCode,
@@ -519,7 +519,7 @@ export default class GiftedDialog extends Vue {
this.offerId, this.offerId,
false, false,
undefined, undefined,
this.showProjects && !this.isFromProjectView ? this.giver?.handleId : undefined, this.showProjects ? this.giver?.handleId : undefined,
); );
if (!result.success) { if (!result.success) {