Fix: Handle undefined rating_snapshot in job detail page
This commit is contained in:
@@ -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)}
|
||||
|
||||
Reference in New Issue
Block a user