fix: use DayState.AvailablePersons in game boards

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
beo3000 2025-12-27 14:51:39 +01:00
parent fcb46ff387
commit c10329c468
2 changed files with 7 additions and 7 deletions

View File

@ -3,14 +3,14 @@
@using Koogle.Application.Games
@using Koogle.Application.Games.Shit
@using Koogle.Web.Store.GameState
@using Koogle.Web.Store.PersonState
@using Koogle.Web.Store.DayState
@using MudBlazor
@inherits Fluxor.Blazor.Web.Components.FluxorComponent
@implements IDisposable
@inject IState<GameState> GameState
@inject IState<PersonState> PersonState
@inject IState<DayState> DayState
<MudPaper Class="pa-4">
<MudText Typo="Typo.h6" Class="mb-4">
@ -198,7 +198,7 @@
}
var currentPlayerId = gameState.Participants.CurrentPlayerId;
var persons = PersonState.Value.Persons;
var persons = DayState.Value.AvailablePersons;
foreach (var (playerId, points) in _model.PlayerPoints)
{
@ -224,7 +224,7 @@
private string GetPlayerName(Guid playerId)
{
var person = PersonState.Value.Persons.FirstOrDefault(p => p.Id == playerId);
var person = DayState.Value.AvailablePersons.FirstOrDefault(p => p.Id == playerId);
return person?.Name ?? "Unbekannt";
}

View File

@ -3,14 +3,14 @@
@using Koogle.Application.Games
@using Koogle.Application.Games.Training
@using Koogle.Web.Store.GameState
@using Koogle.Web.Store.PersonState
@using Koogle.Web.Store.DayState
@using MudBlazor
@inherits Fluxor.Blazor.Web.Components.FluxorComponent
@implements IDisposable
@inject IState<GameState> GameState
@inject IState<PersonState> PersonState
@inject IState<DayState> DayState
<MudPaper Class="pa-4">
<MudText Typo="Typo.h6" Class="mb-4">
@ -168,7 +168,7 @@
}
var currentPlayerId = gameState.Participants.CurrentPlayerId;
var persons = PersonState.Value.Persons;
var persons = DayState.Value.AvailablePersons;
foreach (var (playerId, stats) in model.PlayerStatistics)
{