Simplification d'une condition

pull/630/head
Maxime Quandalle 2019-08-21 14:44:42 +02:00
parent 06ab64db19
commit 0bbb0b2566
No known key found for this signature in database
GPG Key ID: 428641C03D29CA10
1 changed files with 1 additions and 1 deletions

View File

@ -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 (
<a target="_blank" href={links[companyStatus]}>