Fix estimation hour floor (#2282)

Signed-off-by: Ruslan Bayandinov <ruslan.bayandinov@xored.com>
This commit is contained in:
Ruslan Bayandinov 2022-10-06 00:16:08 +07:00 committed by GitHub
parent d761662c21
commit 26b319b294
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,9 +27,7 @@
$: childEstimationTime = (value.childInfo ?? []).map((it) => it.estimation).reduce((a, b) => a + b, 0)
function hourFloor (value: number): number {
const days = Math.ceil(value)
const hours = value - days
return days + Math.floor(hours * 100) / 100
return Number(value.toFixed(2))
}
</script>