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

fix(profileType): Remove data from previous profileType when the question is not asked again

parent b47abbda
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