diff --git a/strr-web/pages/application-details/[applicationId]/ltsa/index.vue b/strr-web/pages/application-details/[applicationId]/ltsa/index.vue index 723d44dd..ed38ff59 100644 --- a/strr-web/pages/application-details/[applicationId]/ltsa/index.vue +++ b/strr-web/pages/application-details/[applicationId]/ltsa/index.vue @@ -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 }]