Skip to content

Commit

Permalink
Merge pull request #128 from pedrolivaresanchez/fix/voluntometro
Browse files Browse the repository at this point in the history
fix: removed all 0 need help from voluntometro
  • Loading branch information
vsornosa1 authored Nov 7, 2024
2 parents fc8dd69 + 73164a9 commit 990a5c8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/app/voluntometro/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,12 @@ export default async function Voluntometro() {
</div>
</div>
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
{getTopAndBottomPueblos().all.map((pueblo) => (
<TownCardInfo key={pueblo.id} pueblo={pueblo} route="/casos-activos/solicitudes/?pueblo=" />
))}
{getTopAndBottomPueblos().all.map(
(pueblo) =>
pueblo.needHelp > 0 && (
<TownCardInfo key={pueblo.id} pueblo={pueblo} route="/casos-activos/solicitudes/?pueblo=" />
),
)}
</div>
</div>
);
Expand Down

0 comments on commit 990a5c8

Please sign in to comment.