This commit is contained in:
Benjamin Nussbaum 2025-02-12 22:23:46 +01:00
parent 01655b413e
commit baf32fa168
2 changed files with 4 additions and 2 deletions

View file

@ -10,7 +10,7 @@
<div class="bg-white dark:bg-gray-800 overflow-hidden shadow-sm sm:rounded-lg">
<div class="p-6 text-gray-900 dark:text-gray-100">
@php
$current_image_uuid = auth()->user()->devices()->first()->current_screen_image;
$current_image_uuid = auth()->user()?->devices()?->first()?->current_screen_image;
$current_image_path = 'images/generated/' . $current_image_uuid . '.png';
@endphp
@if($current_image_uuid)