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;