additional log and missing await at decode invocation

This commit is contained in:
clauspeterhuebner 2025-04-14 15:42:11 +02:00
parent de60a50f20
commit f04d156e5c
2 changed files with 3 additions and 1 deletions

View File

@ -175,7 +175,7 @@ export class TransactionLinkResolver {
// disbursement jwt-token
// eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-assignment
const homeCom = await getHomeCommunity()
const jwtPayload = decode(code, homeCom.publicKey)
const jwtPayload = await decode(code, homeCom.publicKey)
if (jwtPayload !== null && jwtPayload instanceof DisbursementJwtPayloadType) {
const disburseJwtPayload: DisbursementJwtPayloadType = jwtPayload
transactionLink.communityName = homeCom.name !== null ? homeCom.name : 'unknown'

View File

@ -130,6 +130,7 @@ const itemType = computed(() => {
})
const itemTypeExt = computed(() => {
console.log('TransactionLink.itemTypeExt... itemType=', itemType)
if (itemType.value.startsWith('TEXT')) {
return 'TEXT'
}
@ -179,6 +180,7 @@ onResult(() => {
})
onError(() => {
console.log('TransactionLink.onError... error=', error)
toastError(t('gdd_per_link.redeemlink-error'))
})