diff --git a/src/views/DrefOperationalUpdateForm/Overview/i18n.json b/src/views/DrefOperationalUpdateForm/Overview/i18n.json index 1c1183ad34..4d16026888 100644 --- a/src/views/DrefOperationalUpdateForm/Overview/i18n.json +++ b/src/views/DrefOperationalUpdateForm/Overview/i18n.json @@ -33,11 +33,11 @@ "drefFormUploadCoverImage": "Cover image", "drefFormUploadCoverImageDescription": "Upload a image for the cover page of the publicly published DREF application.", "drefFormDrefTypeTitle": "DREF Type", - "drefFormClickEmergencyResponseFramework": "Click to view Emergency Response Framework", + "drefFormClickEmergencyResponseFrameworkLabel": "Click to view Emergency Response Framework", "userListEmptyMessage": "The DREF Operational Update is not shared with anyone.", - "numericDetails": "Numeric Details", - "isDrefChangingToResponse": "Is DREF changing to Response?", - "yesLabel": "Yes, change to Response", + "isDrefChangingToResponse": "Is this DREF changing to Response?", + "yesLabel": "Yes, change it to Response", + "noLabel": "No", "changeToResponseHeading": "Change DREF Type" } } diff --git a/src/views/DrefOperationalUpdateForm/Overview/index.tsx b/src/views/DrefOperationalUpdateForm/Overview/index.tsx index 38a58f14ca..53aeadc073 100644 --- a/src/views/DrefOperationalUpdateForm/Overview/index.tsx +++ b/src/views/DrefOperationalUpdateForm/Overview/index.tsx @@ -53,7 +53,9 @@ import { DISASTER_FLASH_FLOOD, TYPE_IMMINENT, TYPE_LOAN, + TYPE_RESPONSE, ONSET_SUDDEN, + TYPE_ASSESSMENT, } from '../common'; import { type PartialOpsUpdate } from '../schema'; import styles from './styles.module.css'; @@ -163,7 +165,7 @@ function Overview(props: Props) { ); const handleChangeToResponse = useCallback(() => { - setFieldValue(2, 'type_of_dref'); + setFieldValue(TYPE_RESPONSE, 'type_of_dref'); setShowChangeDrefTypeModalFalse(); }, [setFieldValue, setShowChangeDrefTypeModalFalse]); @@ -200,18 +202,28 @@ function Overview(props: Props) {