Skip to content

Commit

Permalink
fix completed
Browse files Browse the repository at this point in the history
  • Loading branch information
wheelsandcogs committed Dec 19, 2024
1 parent 9b5b45c commit 124f757
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/dtos/tasklist-state-dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ export class TasklistStateDTO {

public static translationStatus(dataset: Dataset): TaskStatus {
const metaFullyTranslated = dataset.datasetInfo?.every((info) => {
return every(translatableMetadataKeys, (prop) => info[prop]);
return every(translatableMetadataKeys, (key) => {
// ignore roundingDescription if rounding isn't applied, otherwise check some data exists
return key === 'roundingDescription' && !info.roundingApplied ? true : Boolean(info[key]);
});
});

return metaFullyTranslated ? TaskStatus.Completed : TaskStatus.Incomplete;
Expand Down

0 comments on commit 124f757

Please sign in to comment.