Skip to content

Commit 4faf590

Browse files
samsharafrozenhelium
authored andcommitted
Fix even_date in DREF export for response type
1 parent 030d284 commit 4faf590

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/views/DrefApplicationExport/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ export function Component() {
497497
/>
498498
</Container>
499499
)}
500-
{isDefined(drefResponse?.end_date) && (
500+
{isDefined(drefResponse?.event_date) && (
501501
<Container
502502
heading={drefResponse?.type_of_dref !== DREF_TYPE_IMMINENT
503503
&& strings.dateWhenTheTriggerWasMetHeading}

src/views/DrefApplicationForm/EventDetail/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import {
2828
TYPE_ASSESSMENT,
2929
TYPE_IMMINENT,
3030
TYPE_LOAN,
31-
TYPE_RESPONSE,
3231
} from '../common';
3332
import { type PartialDref } from '../schema';
3433

@@ -253,7 +252,7 @@ function EventDetail(props: Props) {
253252
<Container
254253
heading={strings.drefFormDescriptionEvent}
255254
>
256-
{value.type_of_dref === TYPE_IMMINENT || value.type_of_dref === TYPE_RESPONSE ? (
255+
{value.type_of_dref === TYPE_IMMINENT ? (
257256
<InputSection
258257
title={strings.drefFormApproximateDateOfImpact}
259258
>

src/views/DrefApplicationForm/common.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const ONSET_SUDDEN = 2 satisfies TypeOfOnsetEnum;
1616

1717
export const TYPE_IMMINENT = 0 satisfies TypeOfDrefEnum;
1818
export const TYPE_ASSESSMENT = 1 satisfies TypeOfDrefEnum;
19-
export const TYPE_RESPONSE = 2 satisfies TypeOfDrefEnum;
19+
// export const TYPE_RESPONSE = 2 satisfies TypeOfDrefEnum;
2020
export const TYPE_LOAN = 3 satisfies TypeOfDrefEnum;
2121

2222
// FIXME: identify a way to store disaster

0 commit comments

Comments
 (0)