-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1511 ameliorer le remplissage des revenus (#4099)
* fix: Utilise le nullish coalescing Note: à l'inverse du logical OR ça permet de ne pas fallback sur l'opérande de droites si la valeur de l'opérande de gauche est égale à 0 ou est la chaine vide. Ça permet d'afficher le 0 Pour info ça fix le problème, mais ça en créé d'autres : - le fait qu'on ne puisse plus mettre les champs à vide (1) - le fait que désormais les champs sont à 0 et non à vide (2) * fix: fix de (1) si la chaine est vide on ne force pas de mettre à 0 Note: avant c'était forcé de mettre à 0 puis le 0 fallback sur vide : ici on évite ces aller-retours * fix: fix de (2) initialiser les montants à vide Note: avant on avait le montant à 0 mais ensuite on l'affichait vide via le OR logic⚠️ vérifier que ça casse pas la requête openfisca * fix: Ne pas accepter des valeurs qui ne sont pas des nombre pour InputNumber * feat: Ajout d'un test end-to-end
- Loading branch information
Showing
7 changed files
with
39 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters