mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
Fix tsc error
This commit is contained in:
@@ -7,6 +7,7 @@ export const validateLocality = (editData: LocalityDetails, fieldName: keyof Loc
|
||||
name: 'Basis for age (absolute)',
|
||||
asNumber: (num: number) => {
|
||||
if (num < parseInt(editData.bfa_min_abs ?? '0')) return 'Max value cannot be lower than min'
|
||||
return
|
||||
},
|
||||
},
|
||||
bfa_min_abs: {
|
||||
@@ -15,6 +16,7 @@ export const validateLocality = (editData: LocalityDetails, fieldName: keyof Loc
|
||||
const bfa_max_abs = editData.bfa_max_abs
|
||||
if (!bfa_max_abs) return
|
||||
if (parseInt(bfa_max_abs) > num) return 'Min value cannot be higher than max'
|
||||
return
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user