Skip to content

Commit f43e3b8

Browse files
Fixed typos
1 parent b62a69c commit f43e3b8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

BlazorProducts.Client/BlazorProducts.Client/Pages/Registration.razor

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@page "/registration"
22
<h3>Registration</h3>
33

4-
@if (ShowRegistrationErros)
4+
@if (ShowRegistrationErrors)
55
{
66
<div class="alert alert-danger" role="alert">
77
@foreach (var error in Errors)

BlazorProducts.Client/BlazorProducts.Client/Pages/Registration.razor.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ public partial class Registration
1616
public IAuthenticationService AuthenticationService { get; set; }
1717
[Inject]
1818
public NavigationManager NavigationManager { get; set; }
19-
public bool ShowRegistrationErros { get; set; }
19+
public bool ShowRegistrationErrors { get; set; }
2020
public IEnumerable<string> Errors { get; set; }
2121

2222
public async Task Register()
2323
{
24-
ShowRegistrationErros = false;
24+
ShowRegistrationErrors = false;
2525

2626
var result = await AuthenticationService.RegisterUser(_userForRegistration);
2727
if(!result.IsSuccessfulRegistration)
2828
{
2929
Errors = result.Errors;
30-
ShowRegistrationErros = true;
30+
ShowRegistrationErrors = true;
3131
}
3232
else
3333
{

0 commit comments

Comments
 (0)