Skip to content

Commit

Permalink
Merge pull request bcgov#47 from turb0c0w/sam/host-dashboard
Browse files Browse the repository at this point in the history
adding array access for ltsa
  • Loading branch information
turb0c0w authored Jul 9, 2024
2 parents 777cbae + f85c481 commit 6e5bc1c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions strr-web/pages/application-details/[applicationId]/ltsa/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,21 +159,21 @@ const getFlavour = (status: string, invoices: RegistrationI['invoices']):
const flavour = application ? getFlavour(application.status, application.invoices) : null
const data: LtsaDataI = await getLtsa(applicationId.toString()) || {} as LtsaDataI
const data: LtsaDataI[] = await getLtsa(applicationId.toString()) || {} as LtsaDataI[]
const ownerRows = [{
givenName: data.ownershipGroups[0].titleOwners[0].givenName,
lastName: data.ownershipGroups[0].titleOwners[0].lastNameOrCorpName1,
givenName: data[0].ownershipGroups[0].titleOwners[0].givenName,
lastName: data[0].ownershipGroups[0].titleOwners[0].lastNameOrCorpName1,
address: `
${data.ownershipGroups[0].titleOwners[0].address.addressLine1}
${data.ownershipGroups[0].titleOwners[0].address.addressLine2
? `${data.ownershipGroups[0].titleOwners[0].address.addressLine2} , `
${data[0].ownershipGroups[0].titleOwners[0].address.addressLine1}
${data[0].ownershipGroups[0].titleOwners[0].address.addressLine2
? `${data[0].ownershipGroups[0].titleOwners[0].address.addressLine2} , `
: ', '}
${data.ownershipGroups[0].titleOwners[0].address.city}
${data.ownershipGroups[0].titleOwners[0].address.country}
${data.ownershipGroups[0].titleOwners[0].address.postalCode}
${data[0].ownershipGroups[0].titleOwners[0].address.city}
${data[0].ownershipGroups[0].titleOwners[0].address.country}
${data[0].ownershipGroups[0].titleOwners[0].address.postalCode}
`,
occupation: data.ownershipGroups[0].titleOwners[0].occupationDescription
occupation: data[0].ownershipGroups[0].titleOwners[0].occupationDescription
}]
</script>

0 comments on commit 6e5bc1c

Please sign in to comment.