glutamatt HF Staff commited on
Commit
520340a
Β·
verified Β·
1 Parent(s): 558f7c6
Files changed (1) hide show
  1. 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>πŸ’‘ 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
 
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