From 946f6153390b4120a5270e0fb45505f83ca89487 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 14 Jul 2024 09:23:49 -0500 Subject: [PATCH] Reevaluate signer when window.nostr changes --- src/contexts/nostr-context.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/contexts/nostr-context.tsx b/src/contexts/nostr-context.tsx index 5eab5d15e..a652e82c1 100644 --- a/src/contexts/nostr-context.tsx +++ b/src/contexts/nostr-context.tsx @@ -32,7 +32,7 @@ export const NostrProvider: React.FC = ({ children }) => { const signer = useMemo( () => (accountPubkey ? NKeys.get(accountPubkey) : undefined) ?? window.nostr, - [accountPubkey], + [accountPubkey, window.nostr], ); const handleRelayOpen = () => {