From 2d0212fd6c683fb984eee55e1f815c2c6bbecae2 Mon Sep 17 00:00:00 2001 From: Eugene Date: Thu, 24 Oct 2024 12:54:47 +0300 Subject: [PATCH] fix: redundant updates --- src/pages/verify/index.tsx | 7 +------ src/utils/opentimestamps.ts | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/pages/verify/index.tsx b/src/pages/verify/index.tsx index 8f70528..b6cc5bb 100644 --- a/src/pages/verify/index.tsx +++ b/src/pages/verify/index.tsx @@ -224,7 +224,6 @@ export const VerifyPage = () => { parsedSignatureEvents ) { if (timestamps.every((t) => !!t.verification)) { - console.log('Timestamps are fully verified') return } const upgradeT = async (timestamps: OpenTimestamp[]) => { @@ -276,7 +275,6 @@ export const VerifyPage = () => { } if (userTimestamps.every((t) => !!t.verification)) { - console.log('user timestamps are verified') return } @@ -294,9 +292,7 @@ export const VerifyPage = () => { return timestamp }) - console.log('upgraded timestamps: ', upgradedTimestamps) - - if (upgradedUserTimestamps.length === 0) { + if (upgradedTimestamps.length === 0) { return } @@ -325,7 +321,6 @@ export const VerifyPage = () => { updatedMeta.modifiedAt = unixNow() const updatedEvent = await updateUsersAppData(updatedMeta) - console.log('updated event: ', updatedEvent) if (!updatedEvent) return const userSet = new Set<`npub1${string}`>() diff --git a/src/utils/opentimestamps.ts b/src/utils/opentimestamps.ts index c6d3b44..b8fc8fe 100644 --- a/src/utils/opentimestamps.ts +++ b/src/utils/opentimestamps.ts @@ -44,7 +44,6 @@ export const upgradeAndVerifyTimestamp = async ( export const upgrade = async ( t: OpenTimestamp ): Promise => { - console.log('timestamp: ', t) const detachedTimestamp = window.OpenTimestamps.DetachedTimestampFile.deserialize( hexStringToUint8Array(t.value)