From 62fbfb4e4c741dfba82ea2a63efd7aacfc22f9f8 Mon Sep 17 00:00:00 2001 From: ScuffedNewt Date: Fri, 25 Oct 2024 12:22:23 +0100 Subject: [PATCH] fix: user profile --- resources/views/user/profile.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/user/profile.blade.php b/resources/views/user/profile.blade.php index 0f423658e..28de76bfc 100644 --- a/resources/views/user/profile.blade.php +++ b/resources/views/user/profile.blade.php @@ -23,9 +23,9 @@
This user has been banned.
@endif - @if (Auth::user() ?? false && Auth::user()->isStaff && $user->settings->strike_count > 0) + @if (Auth::check() && Auth::user()->isStaff)
- 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' }}.
@endif