Skip to content
Snippets Groups Projects
Commit e1a84456 authored by Guilhem CARRON's avatar Guilhem CARRON
Browse files

Merge branch '203-donnees-erronees-dans-le-profil' into 'dev'

Resolve "Données erronées dans le profil"

Closes #203

See merge request web-et-numerique/llle_project/ecolyo!546
parents 07b5346a 00e53fde
No related branches found
No related tags found
2 merge requests!555chore(release): 1.7.2,!546Resolve "Données erronées dans le profil"
......@@ -544,6 +544,9 @@ export default class ProfileTypeService {
profileType.hotWaterEquipment = HotWaterEquipment.OTHER
}
}
if (profileType.constructionYear === ConstructionYear.AFTER_1998) {
profileType.individualInsulationWork = [IndividualInsulationWork.NONE]
}
// Remove potential metadata from already existing profileType in order
// to create a new entry. Otherwise will update existing one.
if (profileType._id) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment