From a486e5a3834fce132af3f02de11cd9fa9e962543 Mon Sep 17 00:00:00 2001 From: enes Date: Wed, 20 Nov 2024 13:54:35 +0100 Subject: [PATCH] refactor: remove a few console logs --- src/contexts/NDKContext.tsx | 1 - src/pages/blog/report.tsx | 1 - src/pages/settings/preference.tsx | 1 - 3 files changed, 3 deletions(-) diff --git a/src/contexts/NDKContext.tsx b/src/contexts/NDKContext.tsx index 75d0d41..7ff19af 100644 --- a/src/contexts/NDKContext.tsx +++ b/src/contexts/NDKContext.tsx @@ -74,7 +74,6 @@ export const NDKContextProvider = ({ children }: { children: ReactNode }) => { useEffect(() => { window.onunhandledrejection = async (event: PromiseRejectionEvent) => { event.preventDefault() - console.log(event.reason) if (event.reason?.name === Dexie.errnames.DatabaseClosed) { console.log( 'Could not open Dexie DB, probably version change. Deleting old DB and reloading...' diff --git a/src/pages/blog/report.tsx b/src/pages/blog/report.tsx index b3f6f14..bbbd880 100644 --- a/src/pages/blog/report.tsx +++ b/src/pages/blog/report.tsx @@ -22,7 +22,6 @@ export const ReportPopup = ({ handleClose }: ReportPopupProps) => { useEffect(() => { if (fetcher.data) { const { isSent } = fetcher.data - console.log(fetcher.data) if (isSent) { handleClose() } diff --git a/src/pages/settings/preference.tsx b/src/pages/settings/preference.tsx index 69e3d12..985a509 100644 --- a/src/pages/settings/preference.tsx +++ b/src/pages/settings/preference.tsx @@ -32,7 +32,6 @@ export const PreferencesSetting = () => { UserRelaysType.Both ).then((event) => { if (event) { - console.log('event :>> ', event) const wot = event.tagValue('wot') if (wot) setWotLevel(parseInt(wot)) }