From 712949c11383514b6c31235591da198b35bebd90 Mon Sep 17 00:00:00 2001 From: HolgerHatGarKeineNode <123783602+HolgerHatGarKeineNode@users.noreply.github.com> Date: Sun, 28 Jun 2026 18:36:25 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Guard=20election=20admin=20fetch?= =?UTF-8?q?Profile=20against=20null=20profile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/livewire/association/election/admin.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/livewire/association/election/admin.blade.php b/resources/views/livewire/association/election/admin.blade.php index f75fb4d..d49f0bb 100644 --- a/resources/views/livewire/association/election/admin.blade.php +++ b/resources/views/livewire/association/election/admin.blade.php @@ -149,7 +149,7 @@ new class extends Component { $profile = \App\Models\Profile::query()->where('pubkey', $pubkey)->first(); } - return $profile->pubkey; + return $profile?->pubkey ?? $pubkey; } public function loadNostrEvents($kinds): array