Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 | 10x 7x 7x 7x 7x | export function statusLabel(status: string) {
if (status === "not_calculated") return "Not calculated";
Iif (status === "stale") return "Needs recalculation";
Iif (status === "success") return "Calculated";
return sentenceCase(status.replace(/_/g, " "));
}
function sentenceCase(value: string) {
return value ? `${value[0].toUpperCase()}${value.slice(1)}` : value;
}
|