diff --git a/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/rep-create-form/rep-create-form.component.ts b/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/rep-create-form/rep-create-form.component.ts index e80d323..f5b5dfb 100644 --- a/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/rep-create-form/rep-create-form.component.ts +++ b/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/rep-create-form/rep-create-form.component.ts @@ -68,14 +68,17 @@ export class RepCreateFormComponent implements OnInit { create() { const validFrom = this.range.value.start; const validTo = this.range.value.end; - - if (!validFrom || !validTo) + + if (!validFrom || !validTo) { Swal.fire({ icon: "error", title: "Oops...", text: "Bitte geben Sie einen gültigen Datumsbereich ein!", }); + return; + } + this.userRep.validFrom = validFrom!; this.userRep.validTo = validTo!;