diff --git a/resources/views/components/candidates/turnouts-table.blade.php b/resources/views/components/candidates/turnouts-table.blade.php index 0eb7123..d167ced 100644 --- a/resources/views/components/candidates/turnouts-table.blade.php +++ b/resources/views/components/candidates/turnouts-table.blade.php @@ -25,7 +25,7 @@ - {{ $item['party'] }} + {{ $item['party']??'Independent' }} @endforeach diff --git a/resources/views/livewire/pages/election-turnouts.blade.php b/resources/views/livewire/pages/election-turnouts.blade.php index 1e0c27f..ab5b3f2 100644 --- a/resources/views/livewire/pages/election-turnouts.blade.php +++ b/resources/views/livewire/pages/election-turnouts.blade.php @@ -70,7 +70,7 @@ :election="$election" show-embed /> - @if ($election->type->isNot(ElectionType::REFERENDUM) && $this->candidates->isNotEmpty()) + @if ($election->type->isNot(ElectionType::REFERENDUM) && !$election->has_lists) @endif