diff --git a/frontend/src/components/TimeLogsPage/TimeLogChart.jsx b/frontend/src/components/TimeLogsPage/TimeLogChart.jsx index 7560097..281e123 100644 --- a/frontend/src/components/TimeLogsPage/TimeLogChart.jsx +++ b/frontend/src/components/TimeLogsPage/TimeLogChart.jsx @@ -75,7 +75,8 @@ const TimeLogChart = (props) => { altLabel: `${hours} h, ${minutesLeft} min`, hLabel: `${hours} hours`, minutes: minutesLeft, - mLabel: `${minutesLeft} minutes` + mLabel: `${minutesLeft} minutes`, + defaultLabel: `${altHours.toFixed(1)} h` }) } } else { @@ -93,7 +94,8 @@ const TimeLogChart = (props) => { altLabel: `${hours} h, ${minutesLeft} min`, hLabel: `${hours} hours`, minutes: minutesLeft, - mLabel: `${minutesLeft} minutes` + mLabel: `${minutesLeft} minutes`, + defaultLabel: `${altHours.toFixed(1)} h` }) } } @@ -124,7 +126,7 @@ const TimeLogChart = (props) => { dataKey='altHours' background={false} > - + {chartData.map((entry, index) => ( ))} @@ -178,7 +180,7 @@ const TimeLogChart = (props) => { dataKey='altHours' background={false} > - + {chartData.map((entry, index) => ( ))}