Skip to content

Commit

Permalink
Rename props and methods
Browse files Browse the repository at this point in the history
  • Loading branch information
fvaloy committed Jul 12, 2023
1 parent f9efdbd commit f2e18e0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
{
if (organizerState.CurrentOrganizer is null)
{
organizerState.InitializeCurrentOrganizer(id);
organizerState.SetCurrentOrganizer(id);
}
return base.OnParametersSetAsync();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

void RedirectToOrganizerDetail(Guid id)
{
organizerState.InitializeCurrentOrganizer(id);
organizerState.SetCurrentOrganizer(id);
navigationManager.NavigateTo($"organizers/details/{id}");
}

Expand Down
2 changes: 1 addition & 1 deletion src/Presentation.Web/Pages/Organizers/OrganizerState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class OrganizerState
public OrganizerResponse CurrentOrganizer => _currentOrganizer;
public IReadOnlyCollection<OrganizerResponse> Organizers => _organizers.AsReadOnly();

public void InitializeCurrentOrganizer(Guid id)
public void SetCurrentOrganizer(Guid id)
=> _currentOrganizer = _organizers.First(o => o.Id == id);
public void AddOrganizer(OrganizerResponse organizer)
=> _organizers.Add(organizer);
Expand Down

0 comments on commit f2e18e0

Please sign in to comment.