mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
correct to isRedeemJwtLink
This commit is contained in:
parent
b40546a9e3
commit
e573171441
@ -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,
|
||||
|
||||
@ -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({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user