Update index.html
1 file changed+2−1
index.html+2−1View file
| @@ -3013,7 +3013,8 @@ | ||
| days.sort((a, b) => a.date.localeCompare(b.date)); | ||
| days.forEach(d => { | ||
| const tr = document.createElement('tr'); | ||
| - tr.className = d.worked ? "bg-indigo-50/20" : ""; | ||
| + const amount = d.workAmount !== undefined && d.workAmount !== null ? Number(d.workAmount) : (d.worked ? 1.0 : 0); | ||
| + tr.className = amount >= 1.0 ? "bg-indigo-50/20" : (amount > 0 ? "bg-amber-50/20" : ""); | ||
| tr.innerHTML = ` | ||
| <td class="py-2.5 px-4 font-medium text-slate-800">${d.date}</td> | ||
| <td class="py-2.5 px-4 text-center"> | ||