From 2cc6bc8ce4878eaa8d985085bdcb740d0920e16d Mon Sep 17 00:00:00 2001 From: IMB11 Date: Mon, 14 Jul 2025 16:23:15 +0100 Subject: [PATCH] fix: unidentified files not showing in final checklist message (#3992) * fix: unidentified files not showing in final message * fix: remove condition --- .../ui/moderation/ModpackPermissionsFlow.vue | 38 +++++++++---------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/apps/frontend/src/components/ui/moderation/ModpackPermissionsFlow.vue b/apps/frontend/src/components/ui/moderation/ModpackPermissionsFlow.vue index ff5db66ac..124a49336 100644 --- a/apps/frontend/src/components/ui/moderation/ModpackPermissionsFlow.vue +++ b/apps/frontend/src/components/ui/moderation/ModpackPermissionsFlow.vue @@ -365,26 +365,24 @@ function getJudgements(): ModerationJudgements { const judgements: ModerationJudgements = {}; modPackData.value.forEach((item) => { - if (item.status && item.status !== "unidentified") { - if (item.type === "flame") { - judgements[item.sha1] = { - type: "flame", - id: item.id, - status: item.status, - link: item.url, - title: item.title, - file_name: item.file_name, - }; - } else if (item.type === "unknown") { - judgements[item.sha1] = { - type: "unknown", - status: item.status, - proof: item.proof, - link: item.url, - title: item.title, - file_name: item.file_name, - }; - } + if (item.type === "flame") { + judgements[item.sha1] = { + type: "flame", + id: item.id, + status: item.status, + link: item.url, + title: item.title, + file_name: item.file_name, + }; + } else if (item.type === "unknown") { + judgements[item.sha1] = { + type: "unknown", + status: item.status, + proof: item.proof, + link: item.url, + title: item.title, + file_name: item.file_name, + }; } });