Reevaluate signer when window.nostr changes

environments/review-fix-nos2x-2n6448/deployments/4716
Alex Gleason 2 months ago
parent ed25c63a10
commit 946f615339
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

@ -32,7 +32,7 @@ export const NostrProvider: React.FC<NostrProviderProps> = ({ children }) => {
const signer = useMemo( const signer = useMemo(
() => (accountPubkey ? NKeys.get(accountPubkey) : undefined) ?? window.nostr, () => (accountPubkey ? NKeys.get(accountPubkey) : undefined) ?? window.nostr,
[accountPubkey], [accountPubkey, window.nostr],
); );
const handleRelayOpen = () => { const handleRelayOpen = () => {

Loading…
Cancel
Save