Skip to content

Commit 2cc6bc8

Browse files
authored
fix: unidentified files not showing in final checklist message (#3992)
* fix: unidentified files not showing in final message * fix: remove condition
1 parent 5d19d31 commit 2cc6bc8

1 file changed

Lines changed: 18 additions & 20 deletions

File tree

apps/frontend/src/components/ui/moderation/ModpackPermissionsFlow.vue

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -365,26 +365,24 @@ function getJudgements(): ModerationJudgements {
365365
const judgements: ModerationJudgements = {};
366366
367367
modPackData.value.forEach((item) => {
368-
if (item.status && item.status !== "unidentified") {
369-
if (item.type === "flame") {
370-
judgements[item.sha1] = {
371-
type: "flame",
372-
id: item.id,
373-
status: item.status,
374-
link: item.url,
375-
title: item.title,
376-
file_name: item.file_name,
377-
};
378-
} else if (item.type === "unknown") {
379-
judgements[item.sha1] = {
380-
type: "unknown",
381-
status: item.status,
382-
proof: item.proof,
383-
link: item.url,
384-
title: item.title,
385-
file_name: item.file_name,
386-
};
387-
}
368+
if (item.type === "flame") {
369+
judgements[item.sha1] = {
370+
type: "flame",
371+
id: item.id,
372+
status: item.status,
373+
link: item.url,
374+
title: item.title,
375+
file_name: item.file_name,
376+
};
377+
} else if (item.type === "unknown") {
378+
judgements[item.sha1] = {
379+
type: "unknown",
380+
status: item.status,
381+
proof: item.proof,
382+
link: item.url,
383+
title: item.title,
384+
file_name: item.file_name,
385+
};
388386
}
389387
});
390388

0 commit comments

Comments
 (0)