Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ppr-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ppr-ui",
"version": "6.0.8",
"version": "6.0.9",
"private": true,
"appName": "Assets UI",
"connectLayerName": "Core UI",
Expand Down
10 changes: 9 additions & 1 deletion ppr-ui/src/resources/transferTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,9 +416,17 @@ export const ClientTransferTypes: Array<TransferTypeSelectIF> = [
}
]

const toDTypesForLawyersAndQSNotary: Array<TransferTypeSelectIF> = (() => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could probably improve the capitalization and name a bit here:
todTypesForQsLawyersAndNotaries or something along those lines.

const header = transferDueToDeathTypes[0]
const survivingJointTenant = transferDueToDeathTypes.find(
type => type.transferType === ApiTransferTypes.SURVIVING_JOINT_TENANT
)
return survivingJointTenant ? [header, survivingJointTenant] : [header]
Comment on lines +421 to +424
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't believe you need to the return ternary here.
ie return [header, survivingJointTenant]

})()

export const QualifiedSupplierTransferTypes = (): Array<TransferTypeSelectIF> => {
return [
...ClientTransferTypes,
...(getFeatureFlag('mhr-transfer-enable-tod') ? transferDueToDeathTypes : [])
...(getFeatureFlag('mhr-transfer-enable-tod') ? transferDueToDeathTypes : toDTypesForLawyersAndQSNotary)
]
}
Loading