mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Hide AverageForDaysStudied when studiedPercent = 100 (#3888)
Showing both is redundant when studiedPercent is 100
This commit is contained in:
parent
567cd9b9e3
commit
86ed715458
1 changed files with 7 additions and 5 deletions
|
@ -396,17 +396,19 @@ export function renderReviews(
|
|||
|
||||
{ label: tr.statisticsTotal(), value: totalString },
|
||||
|
||||
{
|
||||
label: tr.statisticsAverageForDaysStudied(),
|
||||
value: averageForDaysStudied,
|
||||
},
|
||||
|
||||
{
|
||||
label: tr.statisticsAverageOverPeriod(),
|
||||
value: averageForPeriod,
|
||||
},
|
||||
];
|
||||
|
||||
if (studiedPercent < 100) {
|
||||
tableData.push({
|
||||
label: tr.statisticsAverageForDaysStudied(),
|
||||
value: averageForDaysStudied,
|
||||
});
|
||||
}
|
||||
|
||||
if (averageAnswerTime) {
|
||||
tableData.push({ label: averageAnswerTimeLabel, value: averageAnswerTime });
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue