diff --git a/src/app/component/auth/register/register.component.html b/src/app/component/auth/register/register.component.html index 139373c..9c6f05d 100644 --- a/src/app/component/auth/register/register.component.html +++ b/src/app/component/auth/register/register.component.html @@ -88,13 +88,16 @@
Email
- @if (this.emailGroup.errors) { + @if (this.emailGroup.errors && this.emailGroup.touched) {

The emails do not match

}
- @if (this.emailGroup.controls["email"].invalid) { + @if ( + this.emailGroup.controls["email"].invalid && + this.emailGroup.controls["email"].touched + ) { @if (this.emailGroup.controls["email"].errors!["required"]) {

Email is required

} @@ -113,7 +116,10 @@ - @if (this.emailGroup.controls["confirmEmail"].invalid) { + @if ( + this.emailGroup.controls["confirmEmail"].invalid && + this.emailGroup.controls["confirmEmail"].touched + ) { @if ( this.emailGroup.controls["confirmEmail"].errors!["required"] ) { @@ -137,13 +143,16 @@
Password
- @if (this.passwordGroup.errors) { + @if (this.passwordGroup.errors && this.passwordGroup.touched) {

The passwords do not match

}
- @if (this.passwordGroup.controls["password"].invalid) { + @if ( + this.passwordGroup.controls["password"].invalid && + this.passwordGroup.controls["password"].touched + ) { @if ( this.passwordGroup.controls["password"].errors!["required"] ) { @@ -161,7 +170,10 @@ - @if (this.passwordGroup.controls["confirmPassword"].invalid) { + @if ( + this.passwordGroup.controls["confirmPassword"].invalid && + this.passwordGroup.controls["confirmPassword"].touched + ) { @if ( this.passwordGroup.controls["confirmPassword"].errors![ "required"