Skip to content

Commit a7c3bb1

Browse files
hbaltyrevu-bot
andauthored
Update packages/frontend/src/app/modules/structures/components/structures-sms-form/structures-sms-form.component.ts
Co-authored-by: Revu <dnum.fabrique@sg.social.gouv.fr>
1 parent 572c2a6 commit a7c3bb1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/frontend/src/app/modules/structures/components/structures-sms-form/structures-sms-form.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,13 @@ export class StructuresSmsFormComponent implements OnInit, OnDestroy {
178178
count++;
179179
}
180180
});
181-
if (count >= 2) {
182-
return { moreThanTwoDays: true };
183-
}
184-
185181
if (count === 0) {
186182
return { atLeastOneDay: true };
187183
}
184+
185+
if (count > 2) {
186+
return { moreThanTwoDays: true };
187+
}
188188

189189
return null;
190190
};

0 commit comments

Comments
 (0)