glutamatt HF Staff commited on
Commit
62a5cee
Β·
verified Β·
1 Parent(s): 7c6b4a2

kcal to cal ( wtf kcal ! )

Browse files
Files changed (1) hide show
  1. src/components/charts.ts +3 -3
src/components/charts.ts CHANGED
@@ -365,7 +365,7 @@ function showActivityDetails(dateStr: string, activities: Activity[]): void {
365
  caloriesDetail.className = 'activity-detail';
366
  caloriesDetail.innerHTML = `
367
  <span class="activity-detail-label">πŸ”‹ Calories</span>
368
- <span class="activity-detail-value">${activity.calories.toFixed(0)} kcal</span>
369
  `;
370
  details.appendChild(caloriesDetail);
371
  }
@@ -780,10 +780,10 @@ export function createCaloriesChart(data: MetricACWRData): void {
780
  'calories-chart',
781
  data,
782
  'Calories',
783
- '(kcal)',
784
  'rgba(234, 179, 8, 0.8)'
785
  );
786
- updateTargetInfo('calories-target', data.targetTomorrowValue, 'kcal', data.targetACWR, data.restTomorrowACWR);
787
 
788
  // Update ACWR display in title
789
  const currentACWR = data.acwr.length > 0 ? data.acwr[data.acwr.length - 1] : null;
 
365
  caloriesDetail.className = 'activity-detail';
366
  caloriesDetail.innerHTML = `
367
  <span class="activity-detail-label">πŸ”‹ Calories</span>
368
+ <span class="activity-detail-value">${activity.calories.toFixed(0)} cal</span>
369
  `;
370
  details.appendChild(caloriesDetail);
371
  }
 
780
  'calories-chart',
781
  data,
782
  'Calories',
783
+ '',
784
  'rgba(234, 179, 8, 0.8)'
785
  );
786
+ updateTargetInfo('calories-target', data.targetTomorrowValue, 'cal', data.targetACWR, data.restTomorrowACWR);
787
 
788
  // Update ACWR display in title
789
  const currentACWR = data.acwr.length > 0 ? data.acwr[data.acwr.length - 1] : null;