diff --git a/src/components/content-credentials/intervention.ts b/src/components/content-credentials/intervention.ts
index bb54246..7ecfc9b 100644
--- a/src/components/content-credentials/intervention.ts
+++ b/src/components/content-credentials/intervention.ts
@@ -1,45 +1,21 @@
import { ProofHintFlags } from "../../models/proof";
import dayjs from "dayjs";
-export const interventionText = (
- t: any,
- f: ProofHintFlags
-): string | undefined => {
+export const interventionText = (t: any, f: ProofHintFlags): string | undefined => {
let res = "";
-
- if (f.generator !== "unknown" && f.generatorSource === "c2pa") {
- if (f.generator === "camera") {
- res += "" + t("cc.captured_with_camera") + " ";
- } else if (f.generator === "screenshot") {
- res += "" + t("cc.screenshot") + " ";
- } else if (f.generator === "ai") {
- res += "" + t("cc.generated_with_ai") + " ";
- }
- if ((f.edits?.length ?? 0) > 0) {
- res += "" + t("cc.modified") + " ";
- }
- if (f.creationDate && dayjs().diff(f.creationDate, "month") >= 3) {
- res += "" + t("cc.older_than_n_months", { n: 3 }) + " ";
- }
- if (res === "") return undefined;
- return res;
- } else if (f.generator !== "unknown") {
- if (f.generator === "camera") {
- res += "" + t("cc.captured_with_camera") + " ";
- } else if (f.generator === "screenshot") {
- res += "" + t("cc.screenshot_probably") + " ";
- return res;
- } else if (f.generator === "ai") {
- res += "" + t("cc.generated_with_ai") + " ";
- }
- if ((f.edits?.length ?? 0) > 0) {
- res += "" + t("cc.modified") + " ";
- }
- if (f.creationDate && dayjs().diff(f.creationDate, "month") >= 3) {
- res += "" + t("cc.older_than_n_months", { n: 3 }) + " ";
- }
- if (res === "") return undefined;
- return res;
+ if (f.generator === "camera") {
+ res += "" + t("cc.captured_with_camera") + " ";
+ } else if (f.generator === "screenshot") {
+ res += "" + (f.generatorSource === "c2pa" ? t("cc.screenshot") : t("cc.screenshot_probably")) + " ";
+ } else if (f.generator === "ai") {
+ res += "" + t("cc.generated_with_ai") + " ";
}
- return undefined;
+ if ((f.edits?.length ?? 0) > 0) {
+ res += "" + t("cc.modified") + " ";
+ }
+ if (f.creationDate && dayjs().diff(f.creationDate, "month") >= 3) {
+ res += "" + t("cc.older_than_n_months", { n: 3 }) + " ";
+ }
+ if (res === "") return undefined;
+ return res;
};