Skip to content

Commit

Permalink
fix: user profile
Browse files Browse the repository at this point in the history
  • Loading branch information
ScuffedNewt committed Oct 25, 2024
1 parent 5f8ded8 commit 62fbfb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/user/profile.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
<div class="alert alert-danger">This user has been banned.</div>
@endif

@if (Auth::user() ?? false && Auth::user()->isStaff && $user->settings->strike_count > 0)
@if (Auth::check() && Auth::user()->isStaff)
<div class="alert alert-warning">
This user has received {{ $user->settings->strike_count }} strike{{ $user->settings->strike_count > 1 ? 's' : '' }}.
This user has received {{ $user->settings->strike_count }} strike{{ $user->settings->strike_count == 1 ? '' : 's' }}.
</div>
@endif

Expand Down

0 comments on commit 62fbfb4

Please sign in to comment.