File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -142,10 +142,6 @@ export namespace Demarche {
142
142
const maintenant = setHoursTo12h00 ( this . dateService . now ( ) )
143
143
const dateTimeFin = setHoursTo12h00 ( demarcheACreer . dateFin )
144
144
145
- let statut = Demarche . Statut . A_FAIRE
146
- const laDateDeFinEstDansLePasse = dateTimeFin < maintenant
147
- if ( laDateDeFinEstDansLePasse ) statut = Demarche . Statut . REALISEE
148
-
149
145
if (
150
146
demarcheACreer . quoi &&
151
147
demarcheACreer . pourquoi &&
@@ -164,7 +160,7 @@ export namespace Demarche {
164
160
}
165
161
}
166
162
return success ( {
167
- statut,
163
+ statut : Demarche . Statut . A_FAIRE ,
168
164
dateCreation : maintenant ,
169
165
dateFin : dateTimeFin ,
170
166
pourquoi : demarcheACreer . pourquoi ,
@@ -174,7 +170,7 @@ export namespace Demarche {
174
170
} )
175
171
} else if ( demarcheACreer . description ) {
176
172
return success ( {
177
- statut,
173
+ statut : Demarche . Statut . A_FAIRE ,
178
174
dateCreation : maintenant ,
179
175
dateFin : dateTimeFin ,
180
176
pourquoi : POURQUOI_DEMARCHE_PERSO ,
You can’t perform that action at this time.
0 commit comments