Округление процентов в группах до целого
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m7s

This commit is contained in:
poignatov
2026-01-22 19:05:14 +03:00
parent fa231c2215
commit 5c1a584925
3 changed files with 5 additions and 5 deletions

View File

@@ -418,7 +418,7 @@ function CurrentWeek({ onProjectClick, data, loading, error, onRetry, allProject
<div className="space-y-6">
<PriorityGroup
title="Главный"
subtitle={`${mainProgress.toFixed(1)}%`}
subtitle={`${Math.round(mainProgress)}%`}
projects={priorityGroups.main}
allProjects={allProjects}
onProjectClick={onProjectClick}
@@ -426,7 +426,7 @@ function CurrentWeek({ onProjectClick, data, loading, error, onRetry, allProject
<PriorityGroup
title="Важные"
subtitle={`${importantProgress.toFixed(1)}%`}
subtitle={`${Math.round(importantProgress)}%`}
projects={priorityGroups.important}
allProjects={allProjects}
onProjectClick={onProjectClick}
@@ -434,7 +434,7 @@ function CurrentWeek({ onProjectClick, data, loading, error, onRetry, allProject
<PriorityGroup
title="Остальные"
subtitle={`${othersProgress.toFixed(1)}%`}
subtitle={`${Math.round(othersProgress)}%`}
projects={priorityGroups.others}
allProjects={allProjects}
onProjectClick={onProjectClick}