Skip to content

Commit

Permalink
Make solutions case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVanderbist committed Nov 26, 2024
1 parent 79d8f54 commit 177c0a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Livewire/TopSecretComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function submitAnswer(): void
->where('day', $this->currentDay)
->firstOrFail();

if ($this->answer !== $questionRow?->answer) {
if (strcasecmp($this->answer, $questionRow?->answer) !== 0) {

Check failure on line 78 in app/Livewire/TopSecretComponent.php

View workflow job for this annotation

GitHub Actions / phpstan

Using nullsafe property access on non-nullable type object. Use -> instead.
$this->answer = '';
$this->hint = $questionRow->hint;
$this->showHint = true;
Expand Down

0 comments on commit 177c0a9

Please sign in to comment.