correct to isRedeemJwtLink

This commit is contained in:
clauspeterhuebner 2025-04-28 15:00:37 +02:00
parent b40546a9e3
commit e573171441
2 changed files with 4 additions and 4 deletions

View File

@ -96,7 +96,7 @@ function setRecipientCommunity(community) {
function extractHomeCommunityFromLinkData(linkData) {
console.log('RedeemCommunitySelection.extractHomeCommunityFromLinkData...linkData=', linkData)
if (linkData.communities.length === 0) {
if (linkData.communities?.length === 0) {
return {
uuid: '',
name: CONFIG.COMMUNITY_NAME,
@ -109,7 +109,7 @@ function extractHomeCommunityFromLinkData(linkData) {
'RedeemCommunitySelection.extractHomeCommunityFromLinkData...communities=',
communities,
)
const homeCommunity = communities.find((c) => c.foreign === false)
const homeCommunity = communities?.find((c) => c.foreign === false)
console.log(
'RedeemCommunitySelection.extractHomeCommunityFromLinkData...homeCommunity=',
homeCommunity,

View File

@ -5,7 +5,7 @@
:link-data="props.linkData"
:redeem-code="props.redeemCode"
:is-contribution-link="props.isContributionLink"
:is-disbursement-link="props.isDisbursementLink"
:is-redeem-jwt-link="props.isRedeemJwtLink"
/>
<BCard>
@ -41,7 +41,7 @@ const props = defineProps({
linkData: { type: Object, required: true },
redeemCode: { type: String, required: true },
isContributionLink: { type: Boolean, default: false },
isDisbursementLink: { type: Boolean, default: false },
isRedeemJwtLink: { type: Boolean, default: false },
})
const recipientCommunity = ref({