Skip to content

Commit

Permalink
Hide avatar when not present
Browse files Browse the repository at this point in the history
  • Loading branch information
timacdonald committed Aug 29, 2023
1 parent 348c53f commit 7d040e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resources/views/livewire/usage.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ class="rounded-md border-gray-200 text-gray-700 py-1 text-sm"
@foreach ($userRequestCounts as $userRequestCount)
<div class="flex items-center justify-between p-3 gap-3 bg-gray-50 rounded">
<div class="flex items-center gap-3">
<img height="32" width="32" src="{{ $userRequestCount['user']['avatar'] }}" loading="lazy" class="rounded-full">
@if ($userRequestCount['user']['avatar'] ?? false)
<img height="32" width="32" src="{{ $userRequestCount['user']['avatar'] }}" loading="lazy" class="rounded-full">
@endif
<div class="overflow-hidden">
<div class="text-sm text-gray-900 font-medium truncate">
{{ $userRequestCount['user']['name'] }}
Expand Down

0 comments on commit 7d040e5

Please sign in to comment.