Skip to content

Commit

Permalink
refactor: remove unused keys
Browse files Browse the repository at this point in the history
  • Loading branch information
QRuhier committed Dec 2, 2024
1 parent a830842 commit 3ad9d3a
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,11 @@ function ResponseFormatDatatypeNumeric({
required
// Convert string "true"/"false" to boolean true/false when storing in Redux form
parse={value => value === 'true'}
// Convert boolean true/false to string "true"/"false" when displaying the form
// Convert true/false/undefined to string "true"/"false" when displaying the form
format={value => (value === true ? 'true' : 'false')}
>
<GenericOption key="1" value="true">
{Dictionary.yes}
</GenericOption>
<GenericOption key="2" value="false">
{Dictionary.no}
</GenericOption>
<GenericOption value="true">{Dictionary.yes}</GenericOption>
<GenericOption value="false">{Dictionary.no}</GenericOption>
</Field>
{isDynamicUnit ? (
<Field
Expand Down

0 comments on commit 3ad9d3a

Please sign in to comment.