Skip to content

Commit

Permalink
missing hint of declared value for mhr transfer (#1587)
Browse files Browse the repository at this point in the history
  • Loading branch information
RuoxuanPengBC authored Oct 17, 2023
1 parent 559d31a commit 81b88e3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 1 addition & 5 deletions ppr-ui/src/components/mhrTransfers/TransferType.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
:disabled="disableSelect"
:rules="declaredValueRules"
:hint="declaredHomeValueHint"
:persistent-hint="isDeclaredHitPersistent"
persistent-hint="true"
data-test-id="declared-value"
/>
<span class="mt-4">.00</span>
Expand Down Expand Up @@ -186,10 +186,6 @@ export default defineComponent({
required('Enter declared value of home'))
}),
showFormError: computed(() => props.validate && !localState.isValid),
isDeclaredHitPersistent: computed(() =>
[ApiTransferTypes.TO_EXECUTOR_PROBATE_WILL,
ApiTransferTypes.TO_EXECUTOR_UNDER_25K_WILL].includes(getMhrTransferType.value?.transferType)
),
declaredHomeValueHint: computed(() =>
transfersContent.declaredHomeValueHint[getMhrTransferType.value?.transferType]
),
Expand Down
10 changes: 7 additions & 3 deletions ppr-ui/src/resources/mhr-transfers/transfers-content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@ import { ApiTransferTypes } from '@/enums'

export const transfersContent = {
declaredHomeValueHint: {
[ApiTransferTypes.SALE_OR_GIFT]:
'Must be the current market value of the home',
[ApiTransferTypes.SURVIVING_JOINT_TENANT]:
'Must be the current market value of the home',
[ApiTransferTypes.TO_EXECUTOR_PROBATE_WILL]:
'Must match the declared value at death as recorded on the list of Assets and Liabilities',
'Must match the declared value at death, as recorded on the list of Assets and Liabilities',
[ApiTransferTypes.TO_EXECUTOR_UNDER_25K_WILL]:
'Must match the declared value at death as recorded on the list of Assets and Liabilities',
'Must match the declared value at death, as recorded on the list of Assets and Liabilities',
[ApiTransferTypes.TO_ADMIN_NO_WILL]:
'Must match the declared value at death as recorded on the list of Assets and Liabilities'
'Must match the declared value at death, as recorded on the list of Assets and Liabilities'
}
}

0 comments on commit 81b88e3

Please sign in to comment.