Skip to content

Commit

Permalink
Fix incorrect parameter
Browse files Browse the repository at this point in the history
Copypasta fail.
  • Loading branch information
nanaya committed Jan 30, 2024
1 parent 004185a commit dec9df4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/layout/_score_mode_toggle.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
See the LICENCE file in the repository root for full licence text.
--}}
@php
$legacyScoreMode ??= App\Libraries\Search\ScoreSearchParams::showLegacyForUser($currentUser) === true;
$legacyScoreMode ??= App\Libraries\Search\ScoreSearchParams::showLegacyForUser(Auth::user()) === true;
$icon = $legacyScoreMode
? 'far fa-square'
: 'fas fa-check-square';
Expand Down

0 comments on commit dec9df4

Please sign in to comment.