Skip to content

Commit 54bf1a5

Browse files
nick-skriabinjombooth
authored andcommitted
fix: DIA-2121: Project statistics on home page for LSO displays annotator's view rather than admin's view (#7314)
1 parent ee103e6 commit 54bf1a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/apps/labelstudio/src/pages/Home/HomePage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ function ProjectSimpleCard({
184184
}: {
185185
project: APIProject;
186186
}) {
187-
const finished = project.queue_done ?? 0;
188-
const total = project.queue_total ?? 0;
187+
const finished = project.finished_task_number ?? 0;
188+
const total = project.task_number ?? 0;
189189
const progress = (total > 0 ? finished / total : 0) * 100;
190190
const white = "#FFFFFF";
191191
const color = project.color && project.color !== white ? project.color : "#E1DED5";

0 commit comments

Comments
 (0)