From e565a176e333879aa1804cfbfd0a60da3ff536d5 Mon Sep 17 00:00:00 2001 From: Tristan Edwards Date: Tue, 27 Dec 2022 23:24:49 +0100 Subject: [PATCH] Update nostr-tools version --- package.json | 2 +- src/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index fc9f0b9..f2a1fe2 100644 --- a/package.json +++ b/package.json @@ -68,6 +68,6 @@ "typescript": "^4.9.4" }, "dependencies": { - "nostr-tools": "^1.0.1" + "nostr-tools": "^1.1.0" } } diff --git a/src/index.tsx b/src/index.tsx index 58fb814..8335b48 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -127,7 +127,7 @@ export function useNostr() { export function useNostrEvents({ filter }: { filter: Filter }) { const { isLoading, onConnect, debug, connectedRelays } = useNostr() const [events, setEvents] = useState([]) - const [unsubscribe, setUnsubscribe] = useState(() => { + const [unsubscribe, setUnsubscribe] = useState<() => void | void>(() => { return })