Skip to content

Commit

Permalink
remove candidates if election has list (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
gheorghelupu17 authored Nov 29, 2024
1 parent 0e3fa2e commit 82e44b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</x-table.td>

<x-table.td align="left">
{{ $item['party'] }}
{{ $item['party']??'Independent' }}
</x-table.td>
</x-table.row>
@endforeach
Expand Down
2 changes: 1 addition & 1 deletion resources/views/livewire/pages/election-turnouts.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
<x-candidates.turnouts-table :items="$this->candidates" />
@endif

Expand Down

0 comments on commit 82e44b4

Please sign in to comment.