File tree 2 files changed +4
-4
lines changed
BlazorProducts.Client/BlazorProducts.Client/Pages
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
@page " /registration"
2
2
<h3 >Registration</h3 >
3
3
4
- @if (ShowRegistrationErros )
4
+ @if (ShowRegistrationErrors )
5
5
{
6
6
<div class =" alert alert-danger" role =" alert" >
7
7
@foreach ( var error in Errors )
Original file line number Diff line number Diff line change @@ -16,18 +16,18 @@ public partial class Registration
16
16
public IAuthenticationService AuthenticationService { get ; set ; }
17
17
[ Inject ]
18
18
public NavigationManager NavigationManager { get ; set ; }
19
- public bool ShowRegistrationErros { get ; set ; }
19
+ public bool ShowRegistrationErrors { get ; set ; }
20
20
public IEnumerable < string > Errors { get ; set ; }
21
21
22
22
public async Task Register ( )
23
23
{
24
- ShowRegistrationErros = false ;
24
+ ShowRegistrationErrors = false ;
25
25
26
26
var result = await AuthenticationService . RegisterUser ( _userForRegistration ) ;
27
27
if ( ! result . IsSuccessfulRegistration )
28
28
{
29
29
Errors = result . Errors ;
30
- ShowRegistrationErros = true ;
30
+ ShowRegistrationErrors = true ;
31
31
}
32
32
else
33
33
{
You can’t perform that action at this time.
0 commit comments