File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
packages/client/src/forms/register/mappings/event-specific-fields/death/query Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 11## [ 1.3.5] ( https://github.com/opencrvs/opencrvs-core/compare/v1.3.4...v1.3.5 )
22
3+ ## Bug fixes
4+ - #### Fix download failure for incomplete (without date of death) death declarations [ #6807 ] ( https://github.com/opencrvs/opencrvs-core/issues/6807 )
5+
36## [ 1.3.4] ( https://github.com/opencrvs/opencrvs-core/compare/v1.3.3...v1.3.4 )
47
58## Bug fixes
Original file line number Diff line number Diff line change 99 * Copyright (C) The OpenCRVS Authors located at https://github.com/opencrvs/opencrvs-core/blob/master/AUTHORS.
1010 */
1111import { IFormField , IFormData } from '@client/forms'
12- import { formatPlainDate } from '@client/utils/date-formatting'
12+ import {
13+ formatPlainDate ,
14+ isValidPlainDate
15+ } from '@client/utils/date-formatting'
1316
1417export const deceasedDateToFieldTransformation =
1518 ( alternativeSectionId ?: string ) =>
@@ -46,8 +49,7 @@ export const deceasedDateFormatTransformation =
4649 }
4750 const queryValue = queryData [ fromSectionId ] . deceased . deathDate
4851
49- const date = new Date ( queryValue )
50- if ( ! Number . isNaN ( date . getTime ( ) ) ) {
52+ if ( isValidPlainDate ( queryValue ) ) {
5153 const prevLocale = window . __localeId__
5254 window . __localeId__ = locale
5355
You can’t perform that action at this time.
0 commit comments