🛠️ Handle null profile gracefully in project card component

This commit is contained in:
HolgerHatGarKeineNode
2026-01-06 21:05:10 +01:00
parent 5783445b68
commit eb7d090ad3

View File

@@ -51,7 +51,7 @@
<div class="grow p-5 flex flex-col"> <div class="grow p-5 flex flex-col">
<div class="grow"> <div class="grow">
<div class="text-sm font-semibold text-amber-500 uppercase mb-2"> <div class="text-sm font-semibold text-amber-500 uppercase mb-2">
Eingereicht von: {{ $project->einundzwanzigPleb->profile->name }} Eingereicht von: {{ $project->einundzwanzigPleb->profile?->name ?? str($project->einundzwanzigPleb->npub)->limit(32) }}
</div> </div>
<div class="inline-flex mb-2"> <div class="inline-flex mb-2">
<h3 class="text-lg font-bold text-gray-800 dark:text-gray-100"> <h3 class="text-lg font-bold text-gray-800 dark:text-gray-100">