Skip to content

Commit

Permalink
Merge pull request #104 from mission-apprentissage/fix-bug
Browse files Browse the repository at this point in the history
fix: includes on undefined
  • Loading branch information
flodlc authored Oct 2, 2023
2 parents 17ee7e2 + 1d342ae commit 8769413
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const CapaciteSection = () => {

const typeDemande = watch("typeDemande");
const mixte = watch("mixte");
const isTransfertApprentissage = watch("motif").includes(
const isTransfertApprentissage = watch("motif")?.includes(
"transfert_apprentissage"
);

Expand Down

0 comments on commit 8769413

Please sign in to comment.