Closed cbenz closed 7 years ago
On https://legislation.openfisca.fr/impot_revenu.autre.finpfl
The API returns a boolean: https://api-test.openfisca.fr/parameter/impot_revenu.autre.finpfl
But this condition uses ! value abusively, which matches the false.
! value
false
Meta: @fpagnoux @MattiSG What could we do to avoid this from now?
What could we do to avoid this from now?
Enforce the use of either === or our brain :wink:
===
Thanks for pinpointing the failure, the fix will be easy.
On https://legislation.openfisca.fr/impot_revenu.autre.finpfl
The API returns a boolean: https://api-test.openfisca.fr/parameter/impot_revenu.autre.finpfl
But this condition uses
! value
abusively, which matches thefalse
.