From 406bf24b071e69306825a18a7e674418f3afc2df Mon Sep 17 00:00:00 2001 From: clauspeterhuebner Date: Fri, 2 May 2025 19:47:10 +0200 Subject: [PATCH] correct check for setting recipientUser for TransactionLink --- frontend/src/pages/TransactionLink.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/pages/TransactionLink.vue b/frontend/src/pages/TransactionLink.vue index a26cd052d..4b2c5feb0 100644 --- a/frontend/src/pages/TransactionLink.vue +++ b/frontend/src/pages/TransactionLink.vue @@ -279,7 +279,7 @@ function setTransactionLinkInformation() { 'TransactionLink.setTransactionLinkInformation... queryTransactionLink=', queryTransactionLink, ) - if (queryTransactionLink) { + if (queryTransactionLink && queryTransactionLink.__typename === 'TransactionLink') { // recipientUser is only set if the user is logged in if (store.state.gradidoID !== null) { queryTransactionLink.recipientUser = { @@ -288,12 +288,12 @@ function setTransactionLinkInformation() { firstName: store.state.firstName, alias: store.state.alias, } + console.log( + 'TransactionLink.setTransactionLinkInformation... queryTransactionLink.recipientUser=', + queryTransactionLink.recipientUser, + ) } - console.log( - 'TransactionLink.setTransactionLinkInformation... queryTransactionLink.recipientUser=', - queryTransactionLink.recipientUser, - ) - linkData.value = queryTransactionLink + linkData.value = queryTransactionLink console.log('TransactionLink.setTransactionLinkInformation... linkData.value=', linkData.value) if (linkData.value.__typename === 'ContributionLink' && store.state.token) { console.log('TransactionLink.setTransactionLinkInformation... typename === ContributionLink')