fix: fixed decimal digits in reports

This commit is contained in:
Nicola Zambello 2023-02-19 14:12:30 +01:00
parent 74acc65dde
commit 8b0f13b340
Signed by: nzambello
GPG key ID: 56E4A92C2C1E50BA

View file

@ -239,10 +239,17 @@ export default function ReportPage() {
)?.name ?? 'No project'}
</Flex>
</td>
<td>{projectData._sum.duration / 1000 / 60 / 60} h</td>
<td>
{(projectData._sum.duration / 1000 / 60 / 60).toFixed(2)} h
</td>
{costPerHour && (
<td>
{(projectData._sum.duration * costPerHour) / 1000 / 60 / 60}{' '}
{(
(projectData._sum.duration * costPerHour) /
1000 /
60 /
60
).toFixed(2)}{' '}
</td>
)}