Skip to content

Commit

Permalink
fix: bloc cc non traité qui ne s'affiche pas (#5314)
Browse files Browse the repository at this point in the history
Co-authored-by: Victor Zeinstra <[email protected]>
  • Loading branch information
Viczei and Victor Zeinstra authored Aug 21, 2023
1 parent 0a6ae69 commit 519f73e
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const ShowAgreements = ({
key={agreement.id}
type="radio"
name={AGREEMENT_ID_NAME}
value={`${agreement.id}`}
value={agreement.id}
validate={required}
>
{(props) => (
Expand All @@ -61,11 +61,11 @@ const ShowAgreements = ({
})}
<OnChange name={AGREEMENT_ID_NAME}>
{(values) => {
const agreement = enterprise?.conventions?.find(
(agreement) => agreement.id === values
const agreementChanged = enterprise?.conventions?.find(
(agreement) => agreement.id.toString() === values.toString()
);
setAgreement(agreement);
onChange(enterprise, agreement ?? null);
setAgreement(agreementChanged);
onChange(enterprise, agreementChanged ?? null);
}}
</OnChange>
<ErrorField name={AGREEMENT_ID_NAME} />
Expand Down

0 comments on commit 519f73e

Please sign in to comment.