diff --git a/src/components/content-credentials/C2PAInfo.vue b/src/components/content-credentials/C2PAInfo.vue index 2ecca45..bbd9a46 100644 --- a/src/components/content-credentials/C2PAInfo.vue +++ b/src/components/content-credentials/C2PAInfo.vue @@ -46,18 +46,16 @@ const props = defineProps<{ const infoText: Ref = ref(undefined); const creationDate: Ref = ref(undefined); -const valid: Ref = ref(false); - const hasC2PA = computed(() => { - return props.proof?.integrity?.c2pa !== undefined; - }); +const hasC2PA = computed(() => { + return props.proof?.integrity?.c2pa !== undefined; +}); watch( props, () => { infoText.value = undefined; creationDate.value = undefined; - valid.value = false; try { if (props.flags) { @@ -88,8 +86,6 @@ watch( infoText.value = result === "" ? undefined : result; } - - valid.value = props.flags?.valid ?? false; } catch (error) {} }, { immediate: true } diff --git a/src/models/proof.ts b/src/models/proof.ts index 052a666..069c02d 100644 --- a/src/models/proof.ts +++ b/src/models/proof.ts @@ -69,7 +69,6 @@ export type ProofHintFlagsEdit = { } export type ProofHintFlags = { - valid: boolean; device?: string; creationDate?: Date; generator?: ProofHintFlagsGenerator; @@ -304,7 +303,6 @@ export const extractProofHintFlags = (proof?: Proof): ProofHintFlags | undefined } const flags: ProofHintFlags = { - valid: valid, device: source && source.length == 1 ? source[0].value : undefined, creationDate: date, generator: generator,