From 864ab6a8c7aa7ae1d4400838be86f038e6417b57 Mon Sep 17 00:00:00 2001 From: Tristan Edwards Date: Tue, 20 Dec 2022 07:33:48 +0000 Subject: [PATCH] Add "debug" option to NostrProvider --- src/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index 97ab4d8..69b4a4f 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -38,9 +38,11 @@ const NostrContext = createContext({ export function NostrProvider({ children, relayUrls, + debug, }: { children: ReactNode; relayUrls: string[]; + debug?: boolean; }) { const [isLoading, setIsLoading] = useState(true); @@ -64,7 +66,7 @@ export function NostrProvider({ onEventCallback(relayUrl, event); } }, - debug: true, + debug, }); sendEventRef.current = _sendEvent;