From b238aa30d302c6c34a9b5a183ab7b4c36d1c39a2 Mon Sep 17 00:00:00 2001 From: Bojan Mojsilovic Date: Mon, 29 Apr 2024 16:03:57 +0200 Subject: [PATCH] Remove checking ffor pubkey every second --- src/contexts/AccountContext.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/contexts/AccountContext.tsx b/src/contexts/AccountContext.tsx index 06a614c..83d40bb 100644 --- a/src/contexts/AccountContext.tsx +++ b/src/contexts/AccountContext.tsx @@ -158,11 +158,11 @@ export function AccountProvider(props: { children: JSXElement }) { let membershipSocket: WebSocket | undefined; - onMount(() => { - setInterval(() => { - checkNostrChange(); - }, 1_000); - }); + // onMount(() => { + // setInterval(() => { + // checkNostrChange(); + // }, 1_000); + // }); const checkNostrChange = async () => { if (location.pathname === '/') return;