Skip to content

Commit

Permalink
addressed comment
Browse files Browse the repository at this point in the history
  • Loading branch information
flutistar committed Aug 26, 2024
1 parent bf611e4 commit 9a8aad5
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions ppr-ui/src/composables/mhrInformation/useMhrInformation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,11 +479,14 @@ export const useMhrInformation = () => {
return owner.individualName ? { ...owner, individualName: normalizeObject(owner.individualName) } : owner
}),
// Determine group tenancy type
type: getMhrTransferType.value?.transferType === ApiTransferTypes.SURVIVING_JOINT_TENANT
? ApiHomeTenancyTypes.JOINT
: getMhrTransferHomeOwnerGroups.value.length > 1
? ApiHomeTenancyTypes.NA
: ApiHomeTenancyTypes.SOLE
type: (ownerGroup.owners.filter(owner => owner.action === ActionTypes.REMOVED).length > 1 ||
getMhrTransferType.value?.transferType === ApiTransferTypes.SURVIVING_JOINT_TENANT)
? getMhrTransferType.value?.transferType === ApiTransferTypes.TO_EXECUTOR_PROBATE_WILL
? ApiHomeTenancyTypes.NA
: ApiHomeTenancyTypes.JOINT
: getMhrTransferHomeOwnerGroups.value.length > 1
? ApiHomeTenancyTypes.NA
: ApiHomeTenancyTypes.SOLE
})
}
})
Expand Down

0 comments on commit 9a8aad5

Please sign in to comment.