Skip to content

Commit 96dad92

Browse files
committed
fix candidatura vice-presidente
1 parent 70c8642 commit 96dad92

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib/common/candidate-card.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
{candidate.name}
2626
</p>
2727
<p class=" is-size-6 has-text-weight-light pb-4">
28-
{#if candidate.cargo === 'presidente' }
28+
{#if candidate.cargo.includes('presidente') }
2929
Candidat{candidate.genre === 'm' ? 'o' : 'a'} a
3030
<br />
3131
<span class="general-sans is-size-6 has-text-weight-light">{cargosSlugs[candidate.cargo][candidate.genre]}</span>

src/routes/partidos-y-candidaturas/candidates/candidate/_about.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<div class="is-flex is-flex-direction-column is-justify-content-space-between element-group">
2727
<p class=" has-text-weight-bold is-size-4">{candidate.name}</p>
2828
<p class="has-text-weight-light">Candidat{candidate.genre === 'm' ? 'o': 'a' } a {cargosSlugs[candidate.cargo][candidate.genre]}</p>
29-
{#if ProvinciasSlugs.find(p => p.slug === candidate.distrito_nacional.slug) && candidate.cargo !== 'presidente'}
29+
{#if ProvinciasSlugs.find(p => p.slug === candidate.distrito_nacional.slug) && !candidate.cargo.includes('presidente')}
3030
<br>
3131
<p class=" has-text-weight-bold is-size-4 is-size-6-touch">Asume como {cargosSlugs[candidate.cargo][candidate.genre]} de</p>
3232
<p class="has-text-weight-light">{ProvinciasSlugs.find(p => p.slug === candidate.distrito_nacional.slug).name}</p>

0 commit comments

Comments
 (0)