From 0bbb0b25668fceea5409186d2fd53e19ded3ca6b Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Wed, 21 Aug 2019 14:44:42 +0200 Subject: [PATCH] Simplification d'une condition --- .../sites/mon-entreprise.fr/pages/Company/CreationChecklist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/sites/mon-entreprise.fr/pages/Company/CreationChecklist.js b/source/sites/mon-entreprise.fr/pages/Company/CreationChecklist.js index adc03b279..7527a9d0a 100644 --- a/source/sites/mon-entreprise.fr/pages/Company/CreationChecklist.js +++ b/source/sites/mon-entreprise.fr/pages/Company/CreationChecklist.js @@ -519,7 +519,7 @@ let StatutsExample = ({ companyStatus }) => { EURL: 'https://bpifrance-creation.fr/file/109070/download?token=Ul-rT6Z0' } - if (Object.keys(links).indexOf(companyStatus) === -1) return null + if (!(companyStatus in links)) return null return (