bug: unwrap getRelays

This commit is contained in:
Kieran 2023-05-04 14:32:24 +01:00
parent 32bb686405
commit 94d1e2c0f9
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
1 changed files with 2 additions and 1 deletions

View File

@ -109,7 +109,8 @@ export default function LoginPage() {
}
async function doNip07Login() {
const relays = "getRelays" in unwrap(window.nostr) ? await unwrap(window.nostr?.getRelays)() : undefined;
const relays =
"getRelays" in unwrap(window.nostr) ? await unwrap(window.nostr?.getRelays).call(window.nostr) : undefined;
const pubKey = await unwrap(window.nostr).getPublicKey();
LoginStore.loginWithPubkey(pubKey, relays);
}