Spaces:
Running
Running
emote
Browse files- src/components/charts.ts +3 -3
src/components/charts.ts
CHANGED
|
@@ -529,12 +529,12 @@ function updateTargetInfo(elementId: string, targetValue: number | null | undefi
|
|
| 529 |
let html: string;
|
| 530 |
|
| 531 |
if (targetValue === null || targetValue === undefined) {
|
| 532 |
-
html = `<strong
|
| 533 |
} else if (targetValue === 0) {
|
| 534 |
-
html = `<strong
|
| 535 |
} else {
|
| 536 |
const formattedValue = targetValue.toFixed(1);
|
| 537 |
-
html = `<strong
|
| 538 |
}
|
| 539 |
|
| 540 |
// Add rest tomorrow information
|
|
|
|
| 529 |
let html: string;
|
| 530 |
|
| 531 |
if (targetValue === null || targetValue === undefined) {
|
| 532 |
+
html = `<strong>π― Target for tomorrow:</strong> <span style="color: var(--secondary-color);">Target ACWR of ${targetACWR} cannot be reached in one day</span>`;
|
| 533 |
} else if (targetValue === 0) {
|
| 534 |
+
html = `<strong>π― Target for tomorrow:</strong> <span style="color: var(--secondary-color);">Rest day recommended to reach ACWR of ${targetACWR}</span>`;
|
| 535 |
} else {
|
| 536 |
const formattedValue = targetValue.toFixed(1);
|
| 537 |
+
html = `<strong>π― Target for tomorrow:</strong> <span class="target-value">${formattedValue} ${unit}</span> <span style="color: var(--secondary-color);">to reach ACWR of ${targetACWR}</span>`;
|
| 538 |
}
|
| 539 |
|
| 540 |
// Add rest tomorrow information
|