fix: 🐛 error on redirect page in start_game state

This commit is contained in:
K Muller 2026-06-11 11:05:16 +02:00
parent 0cd4c2d3cb
commit db05769f91

View file

@ -20,7 +20,7 @@ class RedirectToGoldenIfVoteOpen
$isClubContext = str_starts_with($request->route()->getName(), 'club.');
$targetRoute = match ($currentState) {
'start_game' => 'club.home.show',
'start_game' => 'fo.golden-crush',
'vote' => $isClubContext ? 'club.golden-crush' : 'fo.golden-crush',
'end_participation' => $isClubContext ? 'club.golden-crush.end-of-participation' : 'fo.participation-ended',
'end_game' => $isClubContext ? 'club.golden-crush.end-of-game' : 'fo.game-ended',