Skip to content

Commit

Permalink
Player name is no longer nullable so skip checking for name
Browse files Browse the repository at this point in the history
  • Loading branch information
bakert committed Dec 5, 2024
1 parent bdfda76 commit e79b98d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions gatherling/Views/Components/Preregistration.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ class Preregistration extends Component

public function __construct(Player $player)
{
if (!$player->name) {
throw new NotFoundException("Tried to display preregistration for a player with no name", 0, null, 'Player', []);
}

$upcomingEvents = Event::getUpcomingEvents($player->name);
$events = Event::getNextPreRegister();

Expand Down

0 comments on commit e79b98d

Please sign in to comment.