Fix: Handle undefined rating_snapshot in job detail page

This commit is contained in:
Alejandro Gutiérrez
2026-01-24 13:15:14 +00:00
parent eab0b4a7e9
commit 1e5401a9d1

View File

@@ -555,7 +555,7 @@ export default function JobDetailPage() {
<div className="text-xs font-medium text-green-600">Duration</div>
</div>
)}
{job.rating_snapshot !== null && (
{job.rating_snapshot != null && (
<div className="p-4 bg-yellow-50 border border-yellow-200 rounded-lg">
<div className="text-2xl font-bold text-yellow-800 flex items-center gap-1">
{job.rating_snapshot.toFixed(1)}