From 872a7b6d966d5ea76d198f897a6b2d03f2511008 Mon Sep 17 00:00:00 2001 From: clauspeterhuebner Date: Thu, 17 Apr 2025 22:50:41 +0200 Subject: [PATCH] change onResult access to result.queryTransaciontLink --- frontend/src/pages/TransactionLink.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/pages/TransactionLink.vue b/frontend/src/pages/TransactionLink.vue index 48bca73ee..09c9de275 100644 --- a/frontend/src/pages/TransactionLink.vue +++ b/frontend/src/pages/TransactionLink.vue @@ -186,10 +186,10 @@ onMounted(() => { onResult(() => { console.log('TransactionLink.onResult... result=', result) - if (result?.value?.__typename === 'TransactionLink') { + if (result?.queryTransactionLink?.__typename === 'TransactionLink') { console.log('TransactionLink.onResult... redeeming') setTransactionLinkInformation() - } else if (result?.value?.__typename === 'DisbursementLink') { + } else if (result?.queryTransactionLink?.__typename === 'DisbursementLink') { console.log('TransactionLink.onResult... disbursing') setDisbursementLinkInformation() } else { @@ -204,7 +204,7 @@ onError(() => { function setTransactionLinkInformation() { console.log('TransactionLink.setTransactionLinkInformation... result=', result) - const { queryTransactionLink } = result.value + const { queryTransactionLink } = result.queryTransactionLink console.log( 'TransactionLink.setTransactionLinkInformation... queryTransactionLink=', queryTransactionLink, @@ -222,7 +222,7 @@ function setTransactionLinkInformation() { function setDisbursementLinkInformation() { console.log('TransactionLink.setDisbursementLinkInformation... result=', result) - const { queryDisbursementLink } = result.value + const { queryDisbursementLink } = result.queryDisbursementLink console.log( 'TransactionLink.setDisbursementLinkInformation... queryDisbursementLink=', queryDisbursementLink,