Skip to content

Commit

Permalink
fix: minor fix pueblo card
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickwebsdev committed Nov 7, 2024
1 parent 428ab89 commit e804b3e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/casos-activos/ofertas/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export default function Ofertas() {
className="bg-green-500 text-white px-4 py-2 rounded hover:bg-green-600 flex items-center gap-2 whitespace-nowrap"
>
<HeartHandshake className="w-5 h-5" />
Ofrecer ayuda a {filtroData.pueblo === 'todos' ? '' : towns[filtroData.pueblo - 1].name}
Ofrecer ayuda
</button>
</div>
) : (
Expand Down
2 changes: 1 addition & 1 deletion src/app/casos-activos/solicitudes/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export default function Solicitudes() {
className="bg-green-500 text-white px-4 py-2 rounded hover:bg-green-600 flex items-center gap-2 whitespace-nowrap"
>
<HeartHandshake className="w-5 h-5" />
Ofrecer ayuda a {filtroData.pueblo === 'todos' ? '' : towns[filtroData.pueblo - 1].name}
Ofrecer ayuda a {filtroData.pueblo === 'todos' ? '' : towns[filtroData.pueblo - 1]?.name}
</button>
</div>
) : (
Expand Down
2 changes: 1 addition & 1 deletion src/components/OfferCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default function OfferCard({
<div className="flex items-start gap-2">
<MapPinned className="h-4 w-4 text-gray-500 flex-shrink-0 mt-1" />
<span className="break-words">
<span className="font-semibold">Pueblo:</span> {towns[caso.town_id - 1].name || ''}
<span className="font-semibold">Pueblo:</span> {towns[caso.town_id - 1]?.name || ''}
</span>
</div>
)}
Expand Down

0 comments on commit e804b3e

Please sign in to comment.