mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
change onResult access to result.queryTransaciontLink
This commit is contained in:
parent
de93505edc
commit
872a7b6d96
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user